From ac0db99c94752445763f1dc9df79e6cca9ef3389 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 0101a83..4ecace7 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); -- 2.7.4