dataurisrc: fix leak as gst_buffer_replace adds its own ref

So unref the buffer after that otherwise it leaks
This commit is contained in:
Thiago Santos 2014-06-28 09:35:21 -03:00
parent bdda4bb689
commit 256e843e30

View file

@ -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);