venus: fix a device memory report leak
authorYiwei Zhang <zzyiwei@chromium.org>
Tue, 12 Sep 2023 08:36:50 +0000 (01:36 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 19:28:46 +0000 (19:28 +0000)
Fixes: f70a08bc60f ("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>

src/virtio/vulkan/vn_device.c

index 60bb0ad..c5cace6 100644 (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.