gst/multifile/gstmultifilesrc.c: Fix memory leak spotted by the unit test.
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 18 Jan 2008 10:05:53 +0000 (10:05 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 18 Jan 2008 10:05:53 +0000 (10:05 +0000)
Original commit message from CVS:
* gst/multifile/gstmultifilesrc.c: (gst_multi_file_src_create):
Fix memory leak spotted by the unit test.

gst/multifile/gstmultifilesrc.c

index 35ded48..f2de1b8 100644 (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;