From 72018990502e6f61575d309ebe50e5c651d1f03e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Sat, 28 Jun 2014 09:35:21 -0300 Subject: [PATCH] dataurisrc: fix leak as gst_buffer_replace adds its own ref So unref the buffer after that otherwise it leaks --- plugins/elements/gstdataurisrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/elements/gstdataurisrc.c b/plugins/elements/gstdataurisrc.c index e71d58b2a0..ba8b9a377b 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);