encodebin: fix caps leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 Jan 2017 14:12:47 +0000 (15:12 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 30 Jan 2017 12:17:42 +0000 (14:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=776797

tests/check/elements/encodebin.c

index e48454f..fffff1e 100644 (file)
@@ -1107,6 +1107,7 @@ GST_START_TEST (test_encodebin_fallback_profiles_on_failure)
   _caps_match (sinkpad, "audio/x-raw;audio/x-vorbis");
   gst_element_release_request_pad (ebin, sinkpad);
   gst_object_unref (sinkpad);
+  gst_caps_unref (vorbiscaps);
 
   gst_object_unref (ebin);
 };