gtranslator r3763 - in trunk/src: . plugin-system



Author: icq
Date: Mon Sep 22 09:47:21 2008
New Revision: 3763
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3763&view=rev

Log:
	* plugin-system/plugins-engine.c:
	(gtranslator_plugins_engine_load_all):
	Changed g_list_foreach and g_list_free to
	g_slist_foreach and g_slist_free because their target
	is a GSList.

Modified:
   trunk/src/ChangeLog
   trunk/src/plugin-system/plugins-engine.c

Modified: trunk/src/plugin-system/plugins-engine.c
==============================================================================
--- trunk/src/plugin-system/plugins-engine.c	(original)
+++ trunk/src/plugin-system/plugins-engine.c	Mon Sep 22 09:47:21 2008
@@ -151,7 +151,7 @@
 static void
 gtranslator_plugins_engine_load_all (GtranslatorPluginsEngine *engine)
 {
-	GSList *active_plugins;
+	GSList *active_plugins = NULL;
 	const gchar *home;
 	const gchar *pdirs_env;
 	gchar **pdirs;
@@ -194,8 +194,8 @@
 		gtranslator_plugins_engine_load_dir (engine, pdirs[i], active_plugins);
 
 	g_strfreev (pdirs);
-	g_list_foreach (active_plugins, (GFunc) g_free, NULL);
-	g_list_free (active_plugins);
+	g_slist_foreach (active_plugins, (GFunc) g_free, NULL);
+	g_slist_free (active_plugins);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]