From: Sebastian Dröge Date: Thu, 14 Apr 2011 07:07:48 +0000 (+0200) Subject: multiqueue: Don't leak the sinkpad name X-Git-Tag: RELEASE-0.10.33~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea36e12bbcb5e3e26c3566e9f52aa688cf344191;p=platform%2Fupstream%2Fgstreamer.git multiqueue: Don't leak the sinkpad name --- diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 6b1c240..3988c56 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1780,8 +1780,8 @@ gst_single_queue_new (GstMultiQueue * mqueue, gint id) sq->src_tainted = TRUE; name = g_strdup_printf ("sink%d", sq->id); - sq->sinkpad = gst_pad_new_from_static_template (&sinktemplate, name); + g_free (name); gst_pad_set_chain_function (sq->sinkpad, GST_DEBUG_FUNCPTR (gst_multi_queue_chain));