summaryrefslogtreecommitdiff
path: root/tests/check/gst/mountpoints.c
diff options
context:
space:
mode:
authorJonas Holmberg <jonashg@axis.com>2013-09-06 17:23:20 +0200
committerTim-Philipp Müller <tim@centricular.net>2013-09-06 19:03:22 +0100
commitcafdba8445bc95311e47cac7839edbbf7527a60d (patch)
tree779921f2d0d5b5bf077fd57816ed2941c3b9142e /tests/check/gst/mountpoints.c
parentc15c659b40d12fb5f6521934690cdf816a3c8e8d (diff)
mountpoints tests: unref matched factories
https://bugzilla.gnome.org/show_bug.cgi?id=707638
Diffstat (limited to 'tests/check/gst/mountpoints.c')
-rw-r--r--tests/check/gst/mountpoints.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check/gst/mountpoints.c b/tests/check/gst/mountpoints.c
index 7099604..31a223e 100644
--- a/tests/check/gst/mountpoints.c
+++ b/tests/check/gst/mountpoints.c
@@ -87,9 +87,11 @@ GST_START_TEST (test_match)
tmp = gst_rtsp_mount_points_match (mounts, "/test", &matched);
fail_unless (tmp == f[0]);
fail_unless (matched == 5);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/test/stream=1", &matched);
fail_unless (tmp == f[0]);
fail_unless (matched == 5);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/booz", &matched);
fail_unless (tmp == NULL);
tmp = gst_rtsp_mount_points_match (mounts, "/booz/foo", &matched);
@@ -97,24 +99,31 @@ GST_START_TEST (test_match)
tmp = gst_rtsp_mount_points_match (mounts, "/booz/fooz", &matched);
fail_unless (tmp == f[1]);
fail_unless (matched == 10);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/booz/fooz/zoo", &matched);
fail_unless (tmp == f[1]);
fail_unless (matched == 10);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/booz/foo/zoop", &matched);
fail_unless (tmp == f[2]);
fail_unless (matched == 14);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/tark/bar", &matched);
fail_unless (tmp == f[3]);
fail_unless (matched == 9);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/tark/bar/boo", &matched);
fail_unless (tmp == f[3]);
fail_unless (matched == 9);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/tark/bar/ba", &matched);
fail_unless (tmp == f[3]);
fail_unless (matched == 9);
+ g_object_unref (tmp);
tmp = gst_rtsp_mount_points_match (mounts, "/tark/bar/baz", &matched);
fail_unless (tmp == f[4]);
fail_unless (matched == 13);
+ g_object_unref (tmp);
g_object_unref (mounts);
}