From 5b23786c1ea197a23ad4ad3de1b5bf9d777b5997 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 17 Aug 2021 10:06:06 +0200 Subject: [PATCH] Memory leak hunting --- src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx index 6ca920b5e..6ad99dd9b 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx @@ -31,8 +31,8 @@ void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA: { SALOMEDS::Locker lock; CheckLocked(); - char *aSeq = CORBA::string_dup(theSequence); - dynamic_cast(_impl)->SetObject(aSeq, IsScript); + CORBA::String_var aSeq = CORBA::string_dup(theSequence); + dynamic_cast(_impl)->SetObject(aSeq.in(), IsScript); } char* SALOMEDS_AttributePythonObject_i::GetObject() -- 2.39.2