audioconvert: plug caps leak
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 30 Mar 2012 14:56:40 +0000 (16:56 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 30 Mar 2012 14:56:40 +0000 (16:56 +0200)
gst/audioconvert/gstaudioconvert.c

index 5527f2a..b596681 100644 (file)
@@ -597,6 +597,8 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
 
   result = gst_caps_intersect (othercaps, caps);
   if (gst_caps_is_empty (result)) {
+    if (result)
+      gst_caps_unref (result);
     result = othercaps;
   } else {
     gst_caps_unref (othercaps);