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.
This commit is contained in:
Sebastian Dröge 2008-01-18 10:05:53 +00:00
parent 1fc821baf2
commit 84db6c6101

View file

@ -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;