summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2017-06-13 09:42:40 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2017-11-17 15:00:52 +0800
commitdd96ade66a7205a4a64cf45cdab89797dd1bb21a (patch)
tree8738090643e1154ff0db303e57a9c4cf6984d92d
parent2954106de9627b43e4feacf80406d57242f65ea7 (diff)
downloadlibva-dd96ade66a7205a4a64cf45cdab89797dd1bb21a.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> (cherry picked from commit e50d1074997c3acfc26cb2d3382ec659988f51f4)
-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;