From 84a8f1708e84246f9281cb14b7b067178cbede9d Mon Sep 17 00:00:00 2001 From: ptv Date: Fri, 14 Jul 2006 10:43:49 +0000 Subject: [PATCH] memory leaks and other errors and warnings noticed with help of Rational Purify on Windows --- src/SALOMEDS/SALOMEDS_StudyManager_i.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.39.2