From 230ce4367f5f1ca7b4d3449a8d641c92d4a824c3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 24 Nov 2011 14:14:53 -0300 Subject: [PATCH] multifilesink: Fix leak of filename strings Do not forget to free the filename strings when deleting the list of files. --- gst/multifile/gstmultifilesink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c index 4d454e6..2a1e579 100644 --- a/gst/multifile/gstmultifilesink.c +++ b/gst/multifile/gstmultifilesink.c @@ -594,6 +594,7 @@ gst_multi_file_sink_ensure_max_files (GstMultiFileSink * multifilesink) multifilesink->n_files >= multifilesink->max_files) { filename = multifilesink->files->data; g_remove (filename); + g_free (filename); multifilesink->files = g_slist_delete_link (multifilesink->files, multifilesink->files); multifilesink->n_files -= 1; -- 2.7.4