tests: ghostpad: Fix memory leaks
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 29 Feb 2016 02:06:50 +0000 (11:06 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 29 Feb 2016 07:48:36 +0000 (09:48 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=762845

tests/check/gst/gstghostpad.c

index 9b090bc..1a56ed3 100644 (file)
@@ -1255,6 +1255,8 @@ GST_START_TEST (test_activate_src_pull_mode)
   fail_unless (GST_PAD_IS_ACTIVE (internalpad));
   fail_unless (GST_PAD_IS_ACTIVE (srcpad));
 
+  gst_object_unref (internalpad);
+  gst_object_unref (srcpad);
   gst_object_unref (b);
 }