[anjuta] am-project: Fix a crash when closing and opening a new project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] am-project: Fix a crash when closing and opening a new project
- Date: Mon, 19 Dec 2011 20:12:32 +0000 (UTC)
commit 5918aaafc9a5b5978d10a898204d654be32ae904
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Mon Dec 19 21:12:22 2011 +0100
am-project: Fix a crash when closing and opening a new project
This is due to the last property changes.
plugins/am-project/am-project.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/am-project/am-project.c b/plugins/am-project/am-project.c
index 99eafe0..c4229c6 100644
--- a/plugins/am-project/am-project.c
+++ b/plugins/am-project/am-project.c
@@ -683,7 +683,7 @@ amp_project_load_properties (AmpProject *project, AnjutaToken *macro, AnjutaToke
AnjutaProjectProperty *new_prop;
new_prop = anjuta_project_node_get_property (ANJUTA_PROJECT_NODE (project), info->base.id);
- if (new_prop != NULL)
+ if ((new_prop != NULL) && (new_prop->info->property != new_prop))
{
amp_property_free (new_prop);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]