summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThiago Santos <ts.santos@sisa.samsung.com>2014-06-28 09:35:21 -0300
committerThiago Santos <ts.santos@sisa.samsung.com>2014-06-28 09:44:22 -0300
commit256e843e30d8a183efa144c707a9d719f5247d46 (patch)
tree676c0765ac96d3d4dbf89156734fc52c1212cc86 /gst
parentbdda4bb6897f7db2bf6a8200ff86694eecf72b15 (diff)
downloadgstreamer-plugins-bad-256e843e30d8a183efa144c707a9d719f5247d46.tar.gz
dataurisrc: fix leak as gst_buffer_replace adds its own ref
So unref the buffer after that otherwise it leaks
Diffstat (limited to 'gst')
-rw-r--r--gst/dataurisrc/gstdataurisrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/dataurisrc/gstdataurisrc.c b/gst/dataurisrc/gstdataurisrc.c
index e71d58b2a..ba8b9a377 100644
--- a/gst/dataurisrc/gstdataurisrc.c
+++ b/gst/dataurisrc/gstdataurisrc.c
@@ -411,6 +411,7 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
GST_OBJECT_LOCK (src);
gst_buffer_replace (&src->buffer, buffer);
+ gst_buffer_unref (buffer);
g_free (src->uri);
src->uri = g_strdup (orig_uri);
GST_OBJECT_UNLOCK (src);