vulkan/wsi/wayland: fix leaks
authorJames Legg <lankyleggy@gmail.com>
Fri, 30 Mar 2018 15:45:01 +0000 (16:45 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 3 Apr 2018 21:09:57 +0000 (22:09 +0100)
Fixes: bfa22266cd ("vulkan/wsi/wayland: Add support for zwp_dmabuf")
Reviewed-by: Daniel Stone <daniels@collabora.com>
CC: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common_wayland.c

index d36947bc29683a4ffcafaae8bf5d3f02579eb466..ec38a4e578f1518505b9e361b2aae8edc07adf7c 100644 (file)
@@ -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)