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:
Sven Neumann 2007-06-14 11:30:12 +00:00 committed by Sven Neumann
parent 258895fb2e
commit c2a0689c2d
2 changed files with 10 additions and 1 deletions

View file

@ -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):

View file

@ -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;