mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
micro optimization.
2007-06-14 Sven Neumann <sven@gimp.org> * app/core/gimpdatafactory.c (gimp_data_factory_refresh_cache_remove): micro optimization. svn path=/trunk/; revision=22779
This commit is contained in:
parent
258895fb2e
commit
c2a0689c2d
|
@ -1,3 +1,8 @@
|
|||
2007-06-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/gimpdatafactory.c
|
||||
(gimp_data_factory_refresh_cache_remove): micro optimization.
|
||||
|
||||
2007-06-14 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpdatafactory.c (gimp_data_factory_data_foreach):
|
||||
|
|
|
@ -202,7 +202,11 @@ gimp_data_factory_refresh_cache_remove (gpointer key,
|
|||
gpointer value,
|
||||
gpointer user_data)
|
||||
{
|
||||
g_list_foreach (value, (GFunc) g_object_unref, NULL);
|
||||
GList *list;
|
||||
|
||||
for (list = value; list; list = list->next)
|
||||
g_object_unref (list->data);
|
||||
|
||||
g_list_free (value);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue