summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-01-18 10:05:53 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-01-18 10:05:53 +0000
commit84db6c6101f063d9dafca25f86fc51a02d730329 (patch)
treea4176f1c81c0e75e3cb3b19a6bf7b865d2b0d26e /gst
parent1fc821baf2d4c4d3b609d27fee415625dfba7242 (diff)
gst/multifile/gstmultifilesrc.c: Fix memory leak spotted by the unit test.
Original commit message from CVS: * gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create): Fix memory leak spotted by the unit test.
Diffstat (limited to 'gst')
-rw-r--r--gst/multifile/gstmultifilesrc.c1
1 files changed, 1 insertions, 0 deletions
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;