anv/WSI/X11: Use the right allocator for freeing swapchains

This commit is contained in:
Jason Ekstrand 2016-02-08 15:27:16 -08:00
parent e6d3432c81
commit a485567d3a

View 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;
}