multifilesink: do not use g_slist_free_full

... as that is only in GLib 2.28, which is not yet required at this time.
This commit is contained in:
Mark Nauwelaerts 2011-07-18 14:30:51 +02:00
parent 072bd74cc4
commit 6c0aec783a

View file

@ -289,7 +289,8 @@ gst_multi_file_sink_finalize (GObject * object)
GstMultiFileSink *sink = GST_MULTI_FILE_SINK (object);
g_free (sink->filename);
g_slist_free_full (sink->files, (GDestroyNotify) g_free);
g_slist_foreach (sink->files, (GFunc) g_free, NULL);
g_slist_free (sink->files);
G_OBJECT_CLASS (parent_class)->finalize (object);
}