]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
memory leaks and other errors and warnings noticed with help of Rational Purify on...
authorptv <ptv@opencascade.com>
Fri, 14 Jul 2006 10:43:49 +0000 (10:43 +0000)
committerptv <ptv@opencascade.com>
Fri, 14 Jul 2006 10:43:49 +0000 (10:43 +0000)
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index bd5761d320d27b5a8e9de0bd0c74e137b93f8a58..d1832c3959ff5b739a7ece202c9e2efd69c6040d 100644 (file)
@@ -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();
 }