From: gdd Date: Fri, 13 May 2011 12:47:55 +0000 (+0000) Subject: Fix SIGSEGV X-Git-Tag: V6_3_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c070207c03bc004830c39ed4bdff4e0454aa0a7;p=plugins%2Fghs3dplugin.git Fix SIGSEGV --- 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 = "";