From 8a7eb4810ec094528aba0a1a3cc2795adec94f44 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 16 Apr 2021 09:37:33 +0200 Subject: [PATCH] En ne tuant pas le servant c est mieux --- src/NamingService/SALOME_Embedded_NamingService.cxx | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2