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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user