mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 01:47:52 +02:00
gio/*: Use g_slist_free_full() convenience function
This commit is contained in:
@@ -160,8 +160,7 @@ g_memory_input_stream_finalize (GObject *object)
|
||||
stream = G_MEMORY_INPUT_STREAM (object);
|
||||
priv = stream->priv;
|
||||
|
||||
g_slist_foreach (priv->chunks, free_chunk, NULL);
|
||||
g_slist_free (priv->chunks);
|
||||
g_slist_free_full (priv->chunks, free_chunk);
|
||||
|
||||
G_OBJECT_CLASS (g_memory_input_stream_parent_class)->finalize (object);
|
||||
}
|
||||
|
Reference in New Issue
Block a user