Salome HOME
CCAR: some corrections in :
[modules/kernel.git] / src / Container / Component_i.cxx
index 867411196bac4f20c75227798e473c4533e4217b..885750da9ed96f7101f1e2158805677b304a1541 100644 (file)
@@ -295,8 +295,8 @@ void Engines_Component_i::destroy()
 
   delete _myConnexionToRegistry;
   _myConnexionToRegistry = 0 ;
-  _poa->deactivate_object(*_id) ;
-  delete(_id) ;
+  if(_id)
+    delete(_id) ;
   //SCRUTE(pd_refCount);
   _thisObj->_remove_ref();
   //SCRUTE(pd_refCount);