[anjuta] project-wizard: bgo #654881 - Segmentation fault during project creation if no packages were selecte
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: bgo #654881 - Segmentation fault during project creation if no packages were selecte
- Date: Fri, 29 Jul 2011 16:29:50 +0000 (UTC)
commit 169c57dc977998e190805aaeff50735e8c928124
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Fri Jul 29 18:18:04 2011 +0200
project-wizard: bgo #654881 - Segmentation fault during project creation if no packages were selected
plugins/project-wizard/property.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/project-wizard/property.c b/plugins/project-wizard/property.c
index a35810c..aa9b5cb 100644
--- a/plugins/project-wizard/property.c
+++ b/plugins/project-wizard/property.c
@@ -708,8 +708,11 @@ npw_property_set_value_from_widget (NPWProperty* prop, NPWValueTag tag)
else
str_value = g_string_new (node->data);
}
- value = str_value->str;
- g_string_free (str_value, FALSE);
+ if (str_value != NULL)
+ {
+ value = str_value->str;
+ g_string_free (str_value, FALSE);
+ }
g_list_foreach (packages, (GFunc) g_free, NULL);
g_list_free (packages);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]