summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Ho <[email protected]>2020-01-30 11:02:29 -0500
committerMarge Bot <[email protected]>2020-01-30 18:50:06 +0000
commit1c3319cf81779ba6a17223d22ddd3afc68acab1e (patch)
treeee9001190a42e5cec5f6aca04c18a92b6d8166b8 /src
parent594cb3035615b3a6cf3dc09ccee30554b56eb2f3 (diff)
turnip: Free event->bo on vkDestroyEvent
Fixes a leak from freeing event but not event->bo. Reviewed-by: Jonathan Marek <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/tu_device.c2
1 files changed, 2 insertions, 0 deletions
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);
}