venus: fix a device memory report leak

Fixes: f70a08bc60 ("venus: handle device memory report requests")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25176>
This commit is contained in:
Yiwei Zhang
2023-09-12 01:36:50 -07:00
committed by Marge Bot
parent 9eba1d9187
commit da16a76fe7
+2
View File
@@ -603,6 +603,8 @@ vn_DestroyDevice(VkDevice device, const VkAllocationCallbacks *pAllocator)
vn_device_queue_family_fini(dev);
vn_device_memory_report_fini(dev);
/* We must emit vkDestroyDevice before freeing dev->queues. Otherwise,
* another thread might reuse their object ids while they still refer to
* the queues in the renderer.