streamheader: Fix caps leak in the vorbisenc unit test
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 10 Aug 2009 13:40:33 +0000 (15:40 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 11 Sep 2012 00:54:33 +0000 (01:54 +0100)
tests/check/pipelines/streamheader.c

index 548fcfc..c3872ad 100644 (file)
@@ -156,6 +156,8 @@ buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
     }
     fail_unless (found, "Did not find incoming IN_CAPS buffer %p on caps",
         buffer);
+
+    gst_caps_unref (caps);
   }
 
   return TRUE;