From: ana Date: Mon, 9 Nov 2015 10:22:37 +0000 (+0300) Subject: Windows: fix problem with activation of 'PVViewer' X-Git-Tag: V7_7_0_WIN~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd8d518d82191e73173498a067da5c3bfddf7eb0;p=modules%2Fkernel.git Windows: fix problem with activation of 'PVViewer' --- diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index e18381210..7db065eda 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -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; }