Salome HOME
Fix for bug IPAL18899 : 4x REGRESS: Dump python on the study leads to fatal error...
authormkr <mkr@opencascade.com>
Fri, 4 Jul 2008 12:07:13 +0000 (12:07 +0000)
committermkr <mkr@opencascade.com>
Fri, 4 Jul 2008 12:07:13 +0000 (12:07 +0000)
src/GEOM_I_Superv/GEOM_Superv_i.cc

index bd10a670703832a871627069723ab72db7086e4d..85cea16c173a884c8c7be4edd6e7251c7f601dd3 100644 (file)
@@ -813,9 +813,7 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::MakeSphere  (CORBA::Double theX,
   MESSAGE("GEOM_Superv_i::MakeSphepe");
   getBasicOp();
   get3DPrimOp();
-  GEOM::GEOM_Object_var o = myBasicOp->MakePointXYZ(theX, theY, theZ);
-  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(o, theRadius);
-  o->Destroy();
+  GEOM::GEOM_Object_ptr anObj = my3DPrimOp->MakeSpherePntR(myBasicOp->MakePointXYZ(theX, theY, theZ), theRadius);
   endService( " GEOM_Superv_i::MakeSphepe" );
   return anObj;
 }