summaryrefslogtreecommitdiff
path: root/va/wayland
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2017-06-13 09:42:40 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-06-15 16:25:39 +0800
commite50d1074997c3acfc26cb2d3382ec659988f51f4 (patch)
tree5a711670991c662b186c8411e686d6516ebbe1f3 /va/wayland
parent0d9a919c654022ab39faa4a58f54288929e128a0 (diff)
downloadlibva-e50d1074997c3acfc26cb2d3382ec659988f51f4.tar.gz
wayland: Cleanup wl_registry in va_wayland_drm_destroy
Signed-off-by: Philipp Kerling <pkerling@casix.org> Signed-off-by: Olivier Crete <olivier.crete@collabora.com>
Diffstat (limited to 'va/wayland')
-rw-r--r--va/wayland/va_wayland_drm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/va/wayland/va_wayland_drm.c b/va/wayland/va_wayland_drm.c
index 322d4fb..fa762b7 100644
--- a/va/wayland/va_wayland_drm.c
+++ b/va/wayland/va_wayland_drm.c
@@ -145,6 +145,11 @@ va_wayland_drm_destroy(VADisplayContextP pDisplayContext)
}
wl_drm_ctx->is_authenticated = 0;
+ if (wl_drm_ctx->registry) {
+ wl_registry_destroy(wl_drm_ctx->registry);
+ wl_drm_ctx->registry = NULL;
+ }
+
if (wl_drm_ctx->handle) {
dlclose(wl_drm_ctx->handle);
wl_drm_ctx->handle = NULL;