From: Sebastian Dröge Date: Tue, 28 May 2013 09:36:58 +0000 (+0200) Subject: playsinkconvertbin: Fix leak of the downstream caps filter X-Git-Tag: 1.1.1~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b86267b5be97882dc3ca576a5ea73e2769d4ea87;p=platform%2Fupstream%2Fgst-plugins-base.git playsinkconvertbin: Fix leak of the downstream caps filter --- diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 76cb095..bbda869 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -413,6 +413,8 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter) } peer_caps = gst_pad_query_caps (peer, downstream_filter); + if (downstream_filter) + gst_caps_unref (downstream_filter); gst_object_unref (peer); if (self->converter_caps && is_raw_caps (peer_caps, self->audio)) { ret = gst_caps_merge (peer_caps, gst_caps_ref (self->converter_caps));