]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
En ne tuant pas le servant c est mieux
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 16 Apr 2021 07:37:33 +0000 (09:37 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 16 Apr 2021 07:37:33 +0000 (09:37 +0200)
src/NamingService/SALOME_Embedded_NamingService.cxx

index 284455be40454519bf34d1797609a4be49cff934..ed4066ce7310ad48baa1ea835dd5a32d2d5c954e 100644 (file)
@@ -33,6 +33,7 @@ Engines::EmbeddedNamingService_var GetEmbeddedNamingService()
     std::unique_ptr<SALOME_Embedded_NamingService> servant(new SALOME_Embedded_NamingService);
     _embedded_ns_singleton = servant->_this();
     servant->_remove_ref();
+    servant.release();
   }
   return _embedded_ns_singleton;
 }