[anjuta] project-manager: Fix a crash when closing a project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-manager: Fix a crash when closing a project
- Date: Sun, 26 Jun 2011 15:10:54 +0000 (UTC)
commit 9b0a421788b34804275cadc296d0ba8162dbd151
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sun Jun 26 17:08:03 2011 +0200
project-manager: Fix a crash when closing a project
plugins/project-manager/project.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/project-manager/project.c b/plugins/project-manager/project.c
index 35b15e4..68f7554 100644
--- a/plugins/project-manager/project.c
+++ b/plugins/project-manager/project.c
@@ -233,9 +233,10 @@ anjuta_pm_project_unload (AnjutaPmProject *project, GError **error)
anjuta_shell_remove_value (project->plugin->shell,
IANJUTA_PROJECT_MANAGER_CURRENT_PROJECT,
NULL);
-
+
if (project->project) g_object_unref (project->project);
project->project = NULL;
+ project->root = NULL;
project->loaded = FALSE;
project->node_capabilities = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]