From a485567d3a4c3ac95f329fc29b66e99b3a6adce0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 8 Feb 2016 15:27:16 -0800 Subject: [PATCH] anv/WSI/X11: Use the right allocator for freeing swapchains --- src/vulkan/anv_wsi_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2