Commit 230ce436 authored by Thiago Santos's avatar Thiago Santos
Browse files

multifilesink: Fix leak of filename strings

Do not forget to free the filename strings when deleting
the list of files.
parent 3dc5a09a
......@@ -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->n_files -= 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment