diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index d6837fe5dc..ae89168e1f 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -94,6 +94,8 @@ _ensure_window (GstGLContext * context) window = gst_gl_window_new (context->priv->display); gst_gl_context_set_window (context, window); + + gst_object_unref (window); } static void