tests/check/gst/gstghostpad.c: Fix leak in check.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 2 Oct 2006 16:46:16 +0000 (16:46 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 2 Oct 2006 16:46:16 +0000 (16:46 +0000)
Original commit message from CVS:
* tests/check/gst/gstghostpad.c: (GST_START_TEST),
(gst_ghost_pad_suite):
Fix leak in check.

ChangeLog
tests/check/gst/gstghostpad.c

index 76dea4a..b8743ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-02  Wim Taymans  <wim@fluendo.com>
+
+       * tests/check/gst/gstghostpad.c: (GST_START_TEST),
+       (gst_ghost_pad_suite):
+       Fix leak in check.
+
 2006-10-02  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gstpad.c:
index 7e7d0ae..14f6d11 100644 (file)
@@ -559,6 +559,8 @@ GST_START_TEST (test_ghost_pads_new_from_template)
   newcaps = gst_pad_get_caps (ghostpad);
   fail_unless (newcaps != NULL);
   fail_unless (gst_caps_is_equal (newcaps, padcaps));
+  gst_caps_unref (newcaps);
+  gst_caps_unref (padcaps);
 }
 
 GST_END_TEST;