Salome HOME
The default colors in preferences for sketch elements and features.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Interface.cpp
index 1ee1a621303a50828488368e10cd906e1d25b67a..4db15c99606069265f46b225eb93d2b55b993199 100644 (file)
@@ -18,8 +18,10 @@ GeomAPI_Interface::GeomAPI_Interface(void* theImpl)
 
 GeomAPI_Interface::~GeomAPI_Interface()
 {
-  if (myImpl)
+  if (myImpl) {
     delete myImpl;
+    myImpl = 0;
+  }
 }
 
 void GeomAPI_Interface::setImpl(void* theImpl)