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 316f6fb5c641c3e6fe2bcf976cf868692e5a5e5e..76742b4e07802145048623ff66f513321d12ec9f 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;