tests: fix memory leak, free test's thread pool
authorSebastian Rasmussen <sebras@gmail.com>
Mon, 2 Dec 2013 23:34:52 +0000 (00:34 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 3 Dec 2013 00:05:17 +0000 (00:05 +0000)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=719733

tests/check/gst/media.c

index 23e8586..df3e1c2 100644 (file)
@@ -189,6 +189,7 @@ GST_START_TEST (test_media_prepare)
   g_object_unref (media);
   gst_rtsp_url_free (url);
   g_object_unref (factory);
+  g_object_unref (pool);
 }
 
 GST_END_TEST;
@@ -340,6 +341,7 @@ GST_START_TEST (test_media_reset)
 
   gst_rtsp_url_free (url);
   g_object_unref (factory);
+  g_object_unref (pool);
 }
 
 GST_END_TEST;