From 0f180098a193507b3ec936314d3a789c6b60dbbb Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Mon, 11 Feb 2008 14:01:52 +0000 Subject: Close some memory leaks spotted by the unit test. Fixes bug #515697. Original commit message from CVS: * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): * tests/check/elements/multifile.c: (GST_START_TEST): Close some memory leaks spotted by the unit test. Fixes bug #515697. --- tests/check/elements/multifile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/check/elements/multifile.c b/tests/check/elements/multifile.c index 9529dfd2..b190851a 100644 --- a/tests/check/elements/multifile.c +++ b/tests/check/elements/multifile.c @@ -74,6 +74,7 @@ GST_START_TEST (test_multifilesink) fail_if (mfs == NULL); mfs_pattern = g_build_filename (my_tmpdir, "%05d", NULL); g_object_set (G_OBJECT (mfs), "location", mfs_pattern, NULL); + g_object_unref (mfs); run_pipeline (pipeline); gst_object_unref (pipeline); @@ -117,6 +118,8 @@ GST_START_TEST (test_multifilesrc) fail_if (mfs == NULL); mfs_pattern = g_build_filename (my_tmpdir, "%05d", NULL); g_object_set (G_OBJECT (mfs), "location", mfs_pattern, NULL); + g_free (mfs_pattern); + g_object_unref (mfs); run_pipeline (pipeline); gst_object_unref (pipeline); @@ -129,6 +132,7 @@ GST_START_TEST (test_multifilesrc) fail_if (mfs == NULL); mfs_pattern = g_build_filename (my_tmpdir, "%05d", NULL); g_object_set (G_OBJECT (mfs), "location", mfs_pattern, NULL); + g_object_unref (mfs); run_pipeline (pipeline); gst_object_unref (pipeline); -- cgit