summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gst/multifile/gstmultifilesrc.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d08b99d..a731e15c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-01-18 Sebastian Dröge <slomo@circular-chaos.org>
+ * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create):
+ Fix memory leak spotted by the unit test.
+
+2008-01-18 Sebastian Dröge <slomo@circular-chaos.org>
+
* tests/check/Makefile.am:
Enable spectrum test again.
diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c
index 35ded484..f2de1b86 100644
--- a/gst/multifile/gstmultifilesrc.c
+++ b/gst/multifile/gstmultifilesrc.c
@@ -283,6 +283,7 @@ gst_multi_file_src_create (GstPushSrc * src, GstBuffer ** buffer)
if (multifilesrc->successful_read) {
/* If we've read at least one buffer successfully, not finding the
* next file is EOS. */
+ g_free (filename);
return GST_FLOW_UNEXPECTED;
} else {
goto handle_error;