mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[815/906] fix some refcount errors
This commit is contained in:
parent
888c66d855
commit
d10ccfb795
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -464,6 +464,7 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
|
|||
glimage_sink->display = NULL;
|
||||
}
|
||||
gst_object_unref (glimage_sink->context);
|
||||
gst_object_unref (window);
|
||||
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue