[815/906] fix some refcount errors
This commit is contained in:
parent
888c66d855
commit
d10ccfb795
@ -94,6 +94,8 @@ _ensure_window (GstGLContext * context)
|
|||||||
window = gst_gl_window_new (context->priv->display);
|
window = gst_gl_window_new (context->priv->display);
|
||||||
|
|
||||||
gst_gl_context_set_window (context, window);
|
gst_gl_context_set_window (context, window);
|
||||||
|
|
||||||
|
gst_object_unref (window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -464,6 +464,7 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
|
|||||||
glimage_sink->display = NULL;
|
glimage_sink->display = NULL;
|
||||||
}
|
}
|
||||||
gst_object_unref (glimage_sink->context);
|
gst_object_unref (glimage_sink->context);
|
||||||
|
gst_object_unref (window);
|
||||||
|
|
||||||
return GST_STATE_CHANGE_FAILURE;
|
return GST_STATE_CHANGE_FAILURE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user