From 4c070207c03bc004830c39ed4bdff4e0454aa0a7 Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 13 May 2011 12:47:55 +0000 Subject: [PATCH] Fix SIGSEGV --- src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index d24ad09..67f4e2b 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -633,7 +633,7 @@ bool GHS3DPluginGUI_HypothesisCreator::readParamsFromHypo( GHS3DHypothesisData& MESSAGE("vertices->length(): " << vertices->length()); h_data.myEnforcedVertices.clear(); for (int i=0 ; ilength() ; i++) { - TEnfVertex* myVertex; + TEnfVertex* myVertex = new TEnfVertex(); myVertex->name = CORBA::string_dup(vertices[i].name.in()); myVertex->geomEntry = CORBA::string_dup(vertices[i].geomEntry.in()); myVertex->groupName = CORBA::string_dup(vertices[i].groupName.in()); @@ -766,7 +766,7 @@ bool GHS3DPluginGUI_HypothesisCreator::readParamsFromWidgets( GHS3DHypothesisDat h_data.myEnforcedVertices.clear(); for (int i=0 ; irowCount() ; i++) { - TEnfVertex *myVertex; + TEnfVertex *myVertex = new TEnfVertex(); myVertex->name = ""; myVertex->geomEntry = ""; myVertex->groupName = ""; -- 2.39.2