From b571e40ec7d49875577db955fa02a8f6c75fc9dc Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 22 Oct 2013 21:48:00 +1100 Subject: [PATCH] [828/906] context: refcount the display --- gst-libs/gst/gl/gstglcontext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 0101a830f0..4ecace7a59 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -172,7 +172,7 @@ gst_gl_context_new (GstGLDisplay * display) return NULL; } - context->priv->display = display; + context->priv->display = gst_object_ref (display); return context; } @@ -206,6 +206,7 @@ gst_gl_context_finalize (GObject * object) } gst_object_unref (context->window); + gst_object_unref (context->priv->display); if (context->gl_vtable) { g_slice_free (GstGLFuncs, context->gl_vtable);