From 9abac91c96c697c1e7027251b9336189c28c79fa Mon Sep 17 00:00:00 2001 From: Jiri Uncovsky Date: Tue, 9 Nov 2021 12:10:50 +0000 Subject: [PATCH] glcontext/egl: add missing unref Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c index d3515e1706..d51c263c77 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -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);