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

  Switch to side-by-side view

--- a/sandbox/jlf/trunk/interpreter/classes/QueueClass.cpp
+++ b/sandbox/jlf/trunk/interpreter/classes/QueueClass.cpp
@@ -329,6 +329,7 @@
 /******************************************************************************/
 {
     RexxArray *values = this->makeArray();          /* convert into an array             */
+    ProtectedObject p(values);
     /* turn this into a supplier         */
     return new_supplier(values, OREF_NULL);
 }
@@ -588,6 +589,7 @@
 /******************************************************************************/
 {
     RexxObject *newObj =  new RexxQueue;             /* get a new queue                   */
+    ProtectedObject p(newObj);
     /* Initialize the new list instance  */
     newObj->setBehaviour(((RexxClass *)this)->getInstanceBehaviour());
     if (((RexxClass *)this)->hasUninitDefined())