Use the new g_[s]list_free_full() instead of foreach() and free()

This commit is contained in:
Michael Natterer
2011-03-07 17:10:18 +01:00
parent 514a5548cd
commit fcfb7cf160
56 changed files with 97 additions and 187 deletions

View File

@ -282,8 +282,8 @@ gimp_statusbar_finalize (GObject *object)
statusbar->icon = NULL;
}
g_slist_foreach (statusbar->messages, (GFunc) gimp_statusbar_msg_free, NULL);
g_slist_free (statusbar->messages);
g_slist_free_full (statusbar->messages,
(GDestroyNotify) gimp_statusbar_msg_free);
statusbar->messages = NULL;
if (statusbar->context_ids)