summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-23 10:24:55 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-23 10:24:55 +0200
commit89d2bb75d6aa99e6c58b9a86d2e67d14d7faf0e6 (patch)
tree2569fa7a94952504d81a40a88d59df32a06a660e
parent38ebfb2da874fa601c22cbc83a1cffc357f45276 (diff)
downloadgstreamer-plugins-bad-89d2bb75d6aa99e6c58b9a86d2e67d14d7faf0e6.tar.gz
glimagesink: Call gst_object_unref() on the GstGL GObjects again
While they're plain GObjects it does not hurt to call gst_object_unref() on them and potentially allows to debug reference leaks a bit easier.
-rw-r--r--ext/gl/gstglimagesink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c
index 4e4a293a2..959c2184d 100644
--- a/ext/gl/gstglimagesink.c
+++ b/ext/gl/gstglimagesink.c
@@ -423,7 +423,7 @@ _ensure_gl_setup (GstGLImageSink * gl_sink)
if (!gst_gl_context_create (gl_sink->context, gl_sink->other_context,
&error)) {
- g_object_unref (window);
+ gst_object_unref (window);
goto context_error;
}
@@ -438,7 +438,7 @@ _ensure_gl_setup (GstGLImageSink * gl_sink)
GST_GL_WINDOW_CB (gst_glimage_sink_on_close),
gst_object_ref (gl_sink), (GDestroyNotify) gst_object_unref);
- g_object_unref (window);
+ gst_object_unref (window);
}
if (!gl_sink->upload) {
@@ -453,7 +453,7 @@ upload_error:
{
GST_ELEMENT_ERROR (gl_sink, RESOURCE, NOT_FOUND, ("Failed to init upload"),
(NULL));
- g_object_unref (gl_sink->upload);
+ gst_object_unref (gl_sink->upload);
gl_sink->upload = NULL;
return FALSE;
}
@@ -461,7 +461,7 @@ context_error:
{
GST_ELEMENT_ERROR (gl_sink, RESOURCE, NOT_FOUND, ("%s", error->message),
(NULL));
- g_object_unref (gl_sink->context);
+ gst_object_unref (gl_sink->context);
gl_sink->context = NULL;
return FALSE;
}