turnip: Free event->bo on vkDestroyEvent

Fixes a leak from freeing event but not event->bo.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3639>
This commit is contained in:
Brian Ho 2020-01-30 11:02:29 -05:00 committed by Marge Bot
parent 594cb30356
commit 1c3319cf81
1 changed files with 2 additions and 0 deletions

View File

@ -1761,6 +1761,8 @@ tu_DestroyEvent(VkDevice _device,
if (!event)
return;
tu_bo_finish(device, &event->bo);
vk_free2(&device->alloc, pAllocator, event);
}