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:

committed by
Sven Neumann

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>
|
2007-06-14 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/core/gimpdatafactory.c (gimp_data_factory_data_foreach):
|
* app/core/gimpdatafactory.c (gimp_data_factory_data_foreach):
|
||||||
|
@ -202,7 +202,11 @@ gimp_data_factory_refresh_cache_remove (gpointer key,
|
|||||||
gpointer value,
|
gpointer value,
|
||||||
gpointer user_data)
|
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);
|
g_list_free (value);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user