audioconvert: plug leak
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 6 Sep 2012 11:58:28 +0000 (13:58 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 6 Sep 2012 12:02:07 +0000 (14:02 +0200)
gst/audioconvert/gstaudioconvert.c

index 20b95e0..9a5f5ad 100644 (file)
@@ -610,6 +610,8 @@ gst_audio_convert_fixate_caps (GstBaseTransform * base,
       if (result)
         gst_caps_unref (result);
       result = othercaps;
+    } else {
+      gst_caps_unref (othercaps);
     }
   } else {
     gst_caps_unref (othercaps);