[macruby-changes] [292] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Sun Jun 15 19:21:16 PDT 2008


Revision: 292
          http://trac.macosforge.org/projects/ruby/changeset/292
Author:   lsansonetti at apple.com
Date:     2008-06-15 19:21:15 -0700 (Sun, 15 Jun 2008)

Log Message:
-----------
retain global exceptions

Modified Paths:
--------------
    MacRuby/trunk/eval.c
    MacRuby/trunk/proc.c

Modified: MacRuby/trunk/eval.c
===================================================================
--- MacRuby/trunk/eval.c	2008-06-16 02:21:00 UTC (rev 291)
+++ MacRuby/trunk/eval.c	2008-06-16 02:21:15 UTC (rev 292)
@@ -1209,6 +1209,7 @@
     exception_error = rb_exc_new2(rb_eFatal, "exception reentered");
     rb_ivar_set(exception_error, idThrowState, INT2FIX(TAG_FATAL));
     rb_register_mark_object(exception_error);
+    rb_objc_retain((void *)exception_error);
 }
 
 

Modified: MacRuby/trunk/proc.c
===================================================================
--- MacRuby/trunk/proc.c	2008-06-16 02:21:00 UTC (rev 291)
+++ MacRuby/trunk/proc.c	2008-06-16 02:21:15 UTC (rev 292)
@@ -1756,6 +1756,7 @@
     sysstack_error = rb_exc_new2(rb_eSysStackError, "stack level too deep");
     OBJ_TAINT(sysstack_error);
     rb_register_mark_object(sysstack_error);
+    rb_objc_retain((void *)sysstack_error);
 
     /* utility functions */
     rb_define_global_function("proc", rb_block_proc, 0);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080615/9b160a34/attachment.htm 


More information about the macruby-changes mailing list