OSDN Git Service

wayland: Cleanup wl_registry on terminate
authorPhilipp Kerling <pkerling@casix.org>
Tue, 13 Jun 2017 11:38:20 +0000 (13:38 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 20 Jun 2017 01:13:18 +0000 (09:13 +0800)
Signed-off-by: Philipp Kerling <pkerling@casix.org>
Signed-off-by: Olivier Crete <olivier.crete@collabora.com>
src/i965_output_wayland.c

index 0cd37c3..7e21e96 100644 (file)
@@ -445,6 +445,11 @@ i965_output_wayland_terminate(VADriverContextP ctx)
         wl_output->wl_drm = NULL;
     }
 
+    if (wl_output->wl_registry) {
+        wl_output->vtable.proxy_destroy((struct wl_proxy *)wl_output->wl_registry);
+        wl_output->wl_registry = NULL;
+    }
+
     if (wl_output->libegl_handle) {
         dso_close(wl_output->libegl_handle);
         wl_output->libegl_handle = NULL;