Diff of /sandbox/jlf/trunk/interpreter/classes/MethodClass.cpp [r7646] .. [r7647]  Maximize  Restore

Switch to side-by-side view

--- a/sandbox/jlf/trunk/interpreter/classes/MethodClass.cpp
+++ b/sandbox/jlf/trunk/interpreter/classes/MethodClass.cpp
@@ -509,6 +509,7 @@
     {
         /* get the string representation     */
         RexxString *sourceString = source->makeString();
+        ProtectedObject p(sourceString);
         /* got back .nil?                    */
         if (sourceString == (RexxString *)TheNilObject)
         {
@@ -534,6 +535,7 @@
         {
             /* Get element as string object      */
             RexxString *sourceString = newSourceArray ->get(counter)->makeString();
+            ProtectedObject p(sourceString);
             /* Did it convert?                   */
             if (sourceString == (RexxString *)TheNilObject)
             {
@@ -613,6 +615,7 @@
         {
             // this must be a string (or convertable) and have a specific value
             option = option->requestString();
+            ProtectedObject p(option);
             if (option == TheNilObject)
             {
                 reportException(Error_Incorrect_method_argType, IntegerThree, "Method, Routine, Package, or String object");

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks