[gedit/libgpe] Free the right var and use gchar ** instead of gchar *
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/libgpe] Free the right var and use gchar ** instead of gchar *
- Date: Mon, 16 Nov 2009 12:09:00 +0000 (UTC)
commit 561ecefd263173f20435c9572021d49b777f17f7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 16 13:07:54 2009 +0100
Free the right var and use gchar ** instead of gchar *
gedit/gedit-plugins-engine.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c
index 7e2f246..22bf9fd 100644
--- a/gedit/gedit-plugins-engine.c
+++ b/gedit/gedit-plugins-engine.c
@@ -160,7 +160,7 @@ GPEEngine *
gedit_plugins_engine_get_default (void)
{
gchar *modules_dir;
- gchar *search_paths;
+ gchar **search_paths;
if (default_engine != NULL)
return default_engine;
@@ -182,12 +182,12 @@ gedit_plugins_engine_get_default (void)
default_engine = GPE_ENGINE (g_object_new (GEDIT_TYPE_PLUGINS_ENGINE,
"app-name", "Gedit",
- "base-module-dir", module_dir,
+ "base-module-dir", modules_dir,
"search-paths", search_paths,
NULL));
g_strfreev (search_paths);
- g_free (module_dir);
+ g_free (modules_dir);
/* Load the plugin list from gconf */
gedit_plugins_engine_active_plugins_changed (GEDIT_PLUGINS_ENGINE (default_engine));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]