From 6ff5f3488daa1bed1fa8acb75acbdf893b32f936 Mon Sep 17 00:00:00 2001 From: Philipp Kerling Date: Tue, 13 Jun 2017 13:38:20 +0200 Subject: [PATCH] wayland: Cleanup wl_registry on terminate Signed-off-by: Philipp Kerling Signed-off-by: Olivier Crete --- src/i965_output_wayland.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/i965_output_wayland.c b/src/i965_output_wayland.c index 0cd37c3..7e21e96 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; -- 2.11.0