Author: jsdelfino
Date: Fri Dec  1 08:34:13 2006
New Revision: 481279

URL: http://svn.apache.org/viewvc?view=rev&rev=481279
Log:
Quick fix to make sure the Python service wrapper does not return data 
allocated on the stack. This will have to be cleaned up later as part of a 
bigger clean up of how data is passed around between proxies and wrappers.

Modified:
    
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp

Modified: 
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp?view=diff&rev=481279&r1=481278&r2=481279
==============================================================================
--- 
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp
 (original)
+++ 
incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp
 Fri Dec  1 08:34:13 2006
@@ -751,7 +751,9 @@
                                     default:
                                     {
                                         // The type is set as something else 
or has not been set
-                                        operation.setReturnValue(data);
+                                        string* stringData = new string;
+                                        *stringData = *data;
+                                        operation.setReturnValue(stringData);
                                     }
                                 }
                             }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to