[anjuta] project-manager: Fix bogus project name in status



commit b16cb5319b610a08e1b93e6620bcd9e739594084
Author: Jens Georg <mail jensge org>
Date:   Sun Jan 2 20:00:20 2011 +0100

    project-manager: Fix bogus project name in status
    
    Directory was also used in the if (success) branch, leading to bogus chars in
    the status line (and many warnings/criticals on console)

 plugins/project-manager/plugin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-manager/plugin.c b/plugins/project-manager/plugin.c
index 5cfdd1e..3b5f135 100644
--- a/plugins/project-manager/plugin.c
+++ b/plugins/project-manager/plugin.c
@@ -1301,7 +1301,6 @@ on_project_loaded (AnjutaPmProject *project, GtkTreeIter *parent, gboolean compl
 									  dirname, error->message);
 		}
 	}
-	g_free (dirname);
 
 	if (complete)
 	{
@@ -1326,6 +1325,8 @@ on_project_loaded (AnjutaPmProject *project, GtkTreeIter *parent, gboolean compl
 		g_signal_emit_by_name (G_OBJECT (plugin), "project_loaded", error);
 
 	}
+
+	g_free (dirname);
 }
 
 static void



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