From: Anthony Geay Date: Fri, 16 Apr 2021 07:37:33 +0000 (+0200) Subject: En ne tuant pas le servant c est mieux X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a7eb4810ec094528aba0a1a3cc2795adec94f44;p=modules%2Fkernel.git En ne tuant pas le servant c est mieux --- diff --git a/src/NamingService/SALOME_Embedded_NamingService.cxx b/src/NamingService/SALOME_Embedded_NamingService.cxx index 284455be4..ed4066ce7 100644 --- a/src/NamingService/SALOME_Embedded_NamingService.cxx +++ b/src/NamingService/SALOME_Embedded_NamingService.cxx @@ -33,6 +33,7 @@ Engines::EmbeddedNamingService_var GetEmbeddedNamingService() std::unique_ptr servant(new SALOME_Embedded_NamingService); _embedded_ns_singleton = servant->_this(); servant->_remove_ref(); + servant.release(); } return _embedded_ns_singleton; }