playsinkconvertbin: Fix leak of the downstream caps filter
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 28 May 2013 09:36:58 +0000 (11:36 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 28 May 2013 09:36:58 +0000 (11:36 +0200)
gst/playback/gstplaysinkconvertbin.c

index 76cb095..bbda869 100644 (file)
@@ -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));