From c15c659b40d12fb5f6521934690cdf816a3c8e8d Mon Sep 17 00:00:00 2001 From: Jonas Holmberg Date: Thu, 5 Sep 2013 18:01:18 +0200 Subject: [PATCH] media tests: unref thread pool and caps https://bugzilla.gnome.org/show_bug.cgi?id=707638 --- tests/check/gst/media.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/check/gst/media.c b/tests/check/gst/media.c index c7da079d5e..6b4b2a045b 100644 --- a/tests/check/gst/media.c +++ b/tests/check/gst/media.c @@ -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;