diff options
author | Thiago Santos <ts.santos@sisa.samsung.com> | 2014-06-28 09:35:21 -0300 |
---|---|---|
committer | Thiago Santos <ts.santos@sisa.samsung.com> | 2014-06-28 09:44:22 -0300 |
commit | 256e843e30d8a183efa144c707a9d719f5247d46 (patch) | |
tree | 676c0765ac96d3d4dbf89156734fc52c1212cc86 /gst/dataurisrc | |
parent | bdda4bb6897f7db2bf6a8200ff86694eecf72b15 (diff) |
dataurisrc: fix leak as gst_buffer_replace adds its own ref
So unref the buffer after that otherwise it leaks
Diffstat (limited to 'gst/dataurisrc')
-rw-r--r-- | gst/dataurisrc/gstdataurisrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/dataurisrc/gstdataurisrc.c b/gst/dataurisrc/gstdataurisrc.c index e71d58b2a0..ba8b9a377b 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); |