You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2006/12/01 17:34:14 UTC

svn commit: r481279 - /incubator/tuscany/cpp/sca/runtime/extensions/python/src/tuscany/sca/python/PythonServiceWrapper.cpp

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: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org