glcontext/egl: add missing unref
authorJiri Uncovsky <jiri.uncovsky@amit.cz>
Tue, 9 Nov 2021 12:10:50 +0000 (12:10 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 10 Nov 2021 15:27:45 +0000 (15:27 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1328>

subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c

index d3515e1..d51c263 100644 (file)
@@ -1191,6 +1191,9 @@ gst_gl_context_egl_destroy_context (GstGLContext * context)
     g_signal_handler_disconnect (window, egl->window_handle_signal);
     egl->window_handle_signal = 0;
   }
+  if (window) {
+    gst_object_unref (window);
+  }
 
   gst_gl_context_egl_activate (context, FALSE);