multifilesink: do not use g_slist_free_full
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 18 Jul 2011 12:30:51 +0000 (14:30 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 18 Jul 2011 12:31:40 +0000 (14:31 +0200)
... as that is only in GLib 2.28, which is not yet required at this time.

gst/multifile/gstmultifilesink.c

index d6fbec5..53db536 100644 (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);
 }