tests: fix leaks in videorate unit test
authorTim-Philipp Müller <tim@centricular.net>
Sun, 3 Mar 2013 17:11:25 +0000 (17:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 3 Mar 2013 17:11:25 +0000 (17:11 +0000)
tests/check/elements/videorate.c

index 316f6fb..76742b4 100644 (file)
@@ -1037,7 +1037,7 @@ GST_START_TEST (test_caps_negotiation)
   check_peer_caps (mysrcpad, test->expected_sink_caps, "sink");
   check_peer_caps (mysinkpad, test->expected_src_caps, "src");
 
-  gst_object_unref (videorate);
+  cleanup_videorate (videorate);
 }
 
 GST_END_TEST;