]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Fix SIGSEGV
authorgdd <gdd>
Fri, 13 May 2011 12:47:55 +0000 (12:47 +0000)
committergdd <gdd>
Fri, 13 May 2011 12:47:55 +0000 (12:47 +0000)
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index d24ad09bef3d90b3d3dc5c256c72a3323f93f621..67f4e2b3aa8247b3035cffa200a8dc5b26168f3c 100644 (file)
@@ -633,7 +633,7 @@ bool GHS3DPluginGUI_HypothesisCreator::readParamsFromHypo( GHS3DHypothesisData&
   MESSAGE("vertices->length(): " << vertices->length());
   h_data.myEnforcedVertices.clear();
   for (int i=0 ; i<vertices->length() ; 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 ; i<mySmpModel->rowCount() ; i++) {
-    TEnfVertex *myVertex;
+    TEnfVertex *myVertex = new TEnfVertex();
     myVertex->name = "";
     myVertex->geomEntry = "";
     myVertex->groupName = "";