gedit r6484 - in trunk: . gedit
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6484 - in trunk: . gedit
- Date: Fri, 5 Sep 2008 08:50:19 +0000 (UTC)
Author: icq
Date: Fri Sep 5 08:50:19 2008
New Revision: 6484
URL: http://svn.gnome.org/viewvc/gedit?rev=6484&view=rev
Log:
2008-09-05 Ignacio Casal Quinteiro <nacho resa gmail com>
* gedit/gedit-plugins-engine.c:
Fixed memleak.
Modified:
trunk/ChangeLog
trunk/gedit/gedit-plugins-engine.c
Modified: trunk/gedit/gedit-plugins-engine.c
==============================================================================
--- trunk/gedit/gedit-plugins-engine.c (original)
+++ trunk/gedit/gedit-plugins-engine.c Fri Sep 5 08:50:19 2008
@@ -151,7 +151,7 @@
static void
gedit_plugins_engine_load_all (GeditPluginsEngine *engine)
{
- GSList *active_plugins;
+ GSList *active_plugins = NULL;
const gchar *home;
const gchar *pdirs_env;
gchar **pdirs;
@@ -194,6 +194,8 @@
gedit_plugins_engine_load_dir (engine, pdirs[i], active_plugins);
g_strfreev (pdirs);
+ 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]