mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
multifilesink: Fix leak of filename strings
Do not forget to free the filename strings when deleting the list of files.
This commit is contained in:
parent
3dc5a09a5c
commit
230ce4367f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue