diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-11 14:01:52 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-11 14:01:52 +0000 |
commit | 0f180098a193507b3ec936314d3a789c6b60dbbb (patch) | |
tree | a3ae0ed77519e6c7553ea016f4de59a63ed7fe44 /tests | |
parent | b603027de797e7e2b5afaf01afd369db2178ce7f (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/multifile.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |