media tests: unref thread pool and caps
authorJonas Holmberg <jonashg@axis.com>
Thu, 5 Sep 2013 16:01:18 +0000 (18:01 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 6 Sep 2013 18:03:19 +0000 (19:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=707638

tests/check/gst/media.c

index c7da079..6b4b2a0 100644 (file)
@@ -91,6 +91,8 @@ GST_START_TEST (test_launch)
 
   gst_rtsp_url_free (url);
   g_object_unref (factory);
+
+  g_object_unref (pool);
 }
 
 GST_END_TEST;
@@ -200,6 +202,7 @@ on_notify_caps (GstPad * pad, GParamSpec * pspec, GstElement * pay)
   if (caps) {
     g_signal_emit_by_name (pay, "pad-added", pad);
     g_signal_emit_by_name (pay, "no-more-pads", NULL);
+    gst_caps_unref (caps);
   } else {
     g_signal_emit_by_name (pay, "pad-removed", pad);
   }
@@ -263,6 +266,7 @@ GST_START_TEST (test_media_dyn_prepare)
 
   gst_object_unref (srcpad);
   g_object_unref (media);
+  g_object_unref (pool);
 }
 
 GST_END_TEST;