From 1c3319cf81779ba6a17223d22ddd3afc68acab1e Mon Sep 17 00:00:00 2001 From: Brian Ho Date: Thu, 30 Jan 2020 11:02:29 -0500 Subject: [PATCH] turnip: Free event->bo on vkDestroyEvent Fixes a leak from freeing event but not event->bo. Reviewed-by: Jonathan Marek Tested-by: Marge Bot Part-of: --- src/freedreno/vulkan/tu_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 8dfb288b028..b91df7c4411 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -1761,6 +1761,8 @@ tu_DestroyEvent(VkDevice _device, if (!event) return; + + tu_bo_finish(device, &event->bo); vk_free2(&device->alloc, pAllocator, event); } -- 2.30.2