tests: fix some leaks in aiffparse unit test
authorTim-Philipp Müller <tim@centricular.net>
Fri, 16 Aug 2013 23:22:44 +0000 (00:22 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 16 Aug 2013 23:28:42 +0000 (00:28 +0100)
tests/check/elements/aiffparse.c

index 9d61a99822fb6a9ba8d29925a624321664801310..85949fb871d76a299521ec8b30c53bf2c60fafb2 100644 (file)
@@ -212,10 +212,13 @@ run_check (gboolean push_mode)
   gst_element_set_state (src, GST_STATE_NULL);
 
   gst_object_unref (aiffparse);
+  gst_object_unref (sep);
   gst_object_unref (src);
   gst_object_unref (sinkpad);
   g_main_loop_unref (loop);
   loop = NULL;
+  g_free (path);
+  g_free (data);
 }
 
 GST_START_TEST (test_pull)
@@ -239,7 +242,6 @@ aiffparse_suite (void)
   TCase *tc_chain = tcase_create ("general");
 
   suite_add_tcase (s, tc_chain);
-  tcase_set_timeout (tc_chain, 180);
   tcase_add_test (tc_chain, test_pull);
   tcase_add_test (tc_chain, test_push);