From 3ce6bf65c7df5e3f5938d0abc39866859a7069a6 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Fri, 14 Dec 2018 14:07:47 +0100 Subject: [PATCH] gl/wayland: destroy wl_shell instance at finalize --- gst-libs/gst/gl/wayland/gstgldisplay_wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c index 6760ece..f8c5734 100644 --- a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c +++ b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.c @@ -91,6 +91,8 @@ gst_gl_display_wayland_finalize (GObject * object) { GstGLDisplayWayland *display_wayland = GST_GL_DISPLAY_WAYLAND (object); + g_clear_pointer (&display_wayland->shell, wl_shell_destroy); + /* Cause eglTerminate() to occur before wl_display_disconnect() * https://bugzilla.gnome.org/show_bug.cgi?id=787293 */ g_object_set_data (object, "gst.gl.display.egl", NULL); -- 2.7.4