From: Jason Ekstrand Date: Mon, 8 Feb 2016 23:27:16 +0000 (-0800) Subject: anv/WSI/X11: Use the right allocator for freeing swapchains X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a485567d3a4c3ac95f329fc29b66e99b3a6adce0;p=mesa.git anv/WSI/X11: Use the right allocator for freeing swapchains --- diff --git a/src/vulkan/anv_wsi_x11.c b/src/vulkan/anv_wsi_x11.c index acb4a60e65f..1e08bf31b4b 100644 --- a/src/vulkan/anv_wsi_x11.c +++ b/src/vulkan/anv_wsi_x11.c @@ -538,7 +538,7 @@ x11_swapchain_destroy(struct anv_swapchain *anv_chain, /* TODO: Delete images and free memory */ } - anv_free(NULL /* XXX: pAllocator */, chain); + anv_free2(&chain->base.device->alloc, pAllocator, chain); return VK_SUCCESS; }