]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Windows: fix problem with activation of 'PVViewer'
authorana <ana@opencascade.com>
Mon, 9 Nov 2015 10:22:37 +0000 (13:22 +0300)
committerana <ana@opencascade.com>
Mon, 9 Nov 2015 10:22:37 +0000 (13:22 +0300)
src/Container/Container_i.cxx

index e18381210093125254361e4728feec0610556464..7db065eda04a31e3b978be2bfde370afa06d46e6 100644 (file)
@@ -993,10 +993,11 @@ Engines_Container_i::create_python_service_instance(const char * CompName,
   const char *error;
   PyArg_ParseTuple(result,"ss", &ior, &error);
   reason = CORBA::string_dup(error);
+  char * _ior = CORBA::string_dup(ior);
   Py_DECREF(result);
   PyGILState_Release(gstate);
 
-  return CORBA::string_dup(ior);
+  return _ior;
 }