]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Memory leak hunting
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 17 Aug 2021 08:06:06 +0000 (10:06 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 17 Aug 2021 08:06:06 +0000 (10:06 +0200)
src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx

index 6ca920b5e631c6ab800280f7ca28d5fd21cdbc9f..6ad99dd9b79ee77813733c6acf7362f422f064d6 100644 (file)
@@ -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<SALOMEDSImpl_AttributePythonObject*>(_impl)->SetObject(aSeq, IsScript);
+  CORBA::String_var aSeq = CORBA::string_dup(theSequence);
+  dynamic_cast<SALOMEDSImpl_AttributePythonObject*>(_impl)->SetObject(aSeq.in(), IsScript);
 }
 
 char* SALOMEDS_AttributePythonObject_i::GetObject()