From 6c0aec783a7ab7a0004f2c89b83e7dc8b33bfcc7 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 18 Jul 2011 14:30:51 +0200 Subject: [PATCH] multifilesink: do not use g_slist_free_full ... as that is only in GLib 2.28, which is not yet required at this time. --- gst/multifile/gstmultifilesink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c index d6fbec59ca..53db5366d1 100644 --- a/gst/multifile/gstmultifilesink.c +++ b/gst/multifile/gstmultifilesink.c @@ -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); }