From: skv Date: Fri, 10 Apr 2015 14:00:08 +0000 (+0300) Subject: 0023038: EDF GEOM Regression: SIGSEGV error with MakePipeWithDifferentSections X-Git-Tag: V7_6_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9261bf9d540f1247b5c9731976e16f76cb7ca42;p=modules%2Fgeom.git 0023038: EDF GEOM Regression: SIGSEGV error with MakePipeWithDifferentSections --- diff --git a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx index 4768d35f1..31f53f873 100644 --- a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx @@ -2944,7 +2944,8 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const } } - TopoDS_Shape aShape; + TopoDS_Shape aShape; + const Standard_Boolean isGenerateGroups = aCI->GetGenerateGroups(); if (aType == PIPE_BASE_PATH) { Handle(GEOM_Function) aRefBase = aCI->GetBase(); @@ -3031,7 +3032,6 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const Handle(TColStd_HSequenceOfTransient) aLocObjs = aCIDS->GetLocations (); Standard_Boolean aWithContact = (aCIDS->GetWithContactMode()); Standard_Boolean aWithCorrect = (aCIDS->GetWithCorrectionMode()); - Standard_Boolean isGenerateGroups = aCIDS->GetGenerateGroups(); if (aCI) { delete aCI; @@ -3104,8 +3104,6 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const aShape = CreatePipeBiNormalAlongVector(aWirePath, aCI); } - const Standard_Boolean isGenerateGroups = aCI->GetGenerateGroups(); - if (aCI) { delete aCI; aCI = 0;