anv/WSI/X11: Use the right allocator for freeing swapchains
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Feb 2016 23:27:16 +0000 (15:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 18:29:05 +0000 (10:29 -0800)
src/vulkan/anv_wsi_x11.c

index acb4a60e65f214f5519b6b9c014c347c258ad273..1e08bf31b4b0c35d95209a5179f1d86f8ca59289 100644 (file)
@@ -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;
 }