summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJames Legg <[email protected]>2018-03-30 16:45:01 +0100
committerDaniel Stone <[email protected]>2018-04-03 22:09:57 +0100
commita58fdc61e9f10d91b618c7719a51ea2465a22186 (patch)
treef1680ebb2a31bd6bd2d8f82c6eefff492f21203a /src/vulkan
parent06076ead287cb873194e81cf000e8154031ebfcf (diff)
vulkan/wsi/wayland: fix leaks
Fixes: bfa22266cd ("vulkan/wsi/wayland: Add support for zwp_dmabuf") Reviewed-by: Daniel Stone <[email protected]> CC: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common_wayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
index d36947bc296..ec38a4e578f 100644
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -317,8 +317,12 @@ wsi_wl_display_finish(struct wsi_wl_display *display)
assert(display->refcount == 0);
u_vector_finish(&display->formats);
+ u_vector_finish(&display->modifiers.argb8888);
+ u_vector_finish(&display->modifiers.xrgb8888);
if (display->drm)
wl_drm_destroy(display->drm);
+ if (display->dmabuf)
+ zwp_linux_dmabuf_v1_destroy(display->dmabuf);
if (display->wl_display_wrapper)
wl_proxy_wrapper_destroy(display->wl_display_wrapper);
if (display->queue)