From: ptv Date: Fri, 14 Jul 2006 10:43:49 +0000 (+0000) Subject: memory leaks and other errors and warnings noticed with help of Rational Purify on... X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84a8f1708e84246f9281cb14b7b067178cbede9d;p=modules%2Fkernel.git memory leaks and other errors and warnings noticed with help of Rational Purify on Windows --- diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index bd5761d32..d1832c395 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -337,7 +337,8 @@ SALOMEDS::Study_ptr SALOMEDS_StudyManager_i::GetStudyByID(CORBA::Short aStudyID) } SALOMEDS_Study_i* aStudy_servant = new SALOMEDS_Study_i(aStudyImpl, _orb); - SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(aStudy_servant->_this()); + CORBA::Object_var obj = aStudy_servant->_this(); + SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(obj); return aStudy._retn(); }