summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2017-06-13 13:38:20 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-06-20 09:13:18 +0800
commit6ff5f3488daa1bed1fa8acb75acbdf893b32f936 (patch)
treead0e0ec1940474bc1f016b0afc47d28eccdd4e63
parent7633739615b39762a10ccc85c3e52aa281e98592 (diff)
downloadlibva-intel-driver-6ff5f3488daa1bed1fa8acb75acbdf893b32f936.tar.gz
wayland: Cleanup wl_registry on terminate
Signed-off-by: Philipp Kerling <pkerling@casix.org> Signed-off-by: Olivier Crete <olivier.crete@collabora.com>
-rw-r--r--src/i965_output_wayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i965_output_wayland.c b/src/i965_output_wayland.c
index 0cd37c39..7e21e96f 100644
--- a/src/i965_output_wayland.c
+++ b/src/i965_output_wayland.c
@@ -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;