Commit c2a0689c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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
parent 258895fb
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment