Diff of /sandbox/jlf/trunk/interpreter/expression/ExpressionStack.cpp [r7646] .. [r7647]  Maximize  Restore

  Switch to side-by-side view

--- a/sandbox/jlf/trunk/interpreter/expression/ExpressionStack.cpp
+++ b/sandbox/jlf/trunk/interpreter/expression/ExpressionStack.cpp
@@ -46,6 +46,8 @@
 #include "StringClass.hpp"
 #include "ExpressionStack.hpp"
 #include "ActivityManager.hpp"
+#include "ProtectedObject.hpp"
+
 
 void RexxExpressionStack::live(size_t liveMark)
 /******************************************************************************/
@@ -161,6 +163,7 @@
                                           /* get the string form, raising a    */
                                           /* NOSTRING condition if necessary   */
     RexxString *newStr = argument->requestString();
+    ProtectedObject p(newStr);
     this->replace(position, newStr);     /* replace the argument              */
     return newStr;                       /* return the replacement value      */
 }
@@ -184,6 +187,7 @@
                                           /* get the string form, raising a    */
                                           /* NOSTRING condition if necessary   */
     RexxString *newStr = argument->requestString();
+    ProtectedObject p(newStr);
     this->replace(position, newStr);     /* replace the argument              */
     return newStr;                       /* return the replacement value      */
 }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks