mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
[828/906] context: refcount the display
This commit is contained in:
parent
95f7b8dce6
commit
b571e40ec7
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue