From: Thiago Santos Date: Sat, 28 Jun 2014 12:35:21 +0000 (-0300) Subject: dataurisrc: fix leak as gst_buffer_replace adds its own ref X-Git-Tag: 1.12.0~212^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72018990502e6f61575d309ebe50e5c651d1f03e;p=platform%2Fupstream%2Fgstreamer.git dataurisrc: fix leak as gst_buffer_replace adds its own ref So unref the buffer after that otherwise it leaks --- diff --git a/plugins/elements/gstdataurisrc.c b/plugins/elements/gstdataurisrc.c index e71d58b..ba8b9a3 100644 --- a/plugins/elements/gstdataurisrc.c +++ b/plugins/elements/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);