[macruby-changes] [114] MacRuby/trunk/gc.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 21 10:10:55 PDT 2008
Revision: 114
http://trac.macosforge.org/projects/ruby/changeset/114
Author: lsansonetti at apple.com
Date: 2008-03-21 10:10:53 -0700 (Fri, 21 Mar 2008)
Log Message:
-----------
potential fix for #36
Modified Paths:
--------------
MacRuby/trunk/gc.c
Modified: MacRuby/trunk/gc.c
===================================================================
--- MacRuby/trunk/gc.c 2008-03-21 05:52:12 UTC (rev 113)
+++ MacRuby/trunk/gc.c 2008-03-21 17:10:53 UTC (rev 114)
@@ -721,14 +721,14 @@
void
rb_objc_retain(void *addr)
{
- if (addr != NULL)
+ if (addr != NULL && !SPECIAL_CONST_P(addr))
auto_zone_retain(__auto_zone, addr);
}
void
rb_objc_release(void *addr)
{
- if (addr != NULL && auto_zone_retain_count(__auto_zone, addr) > 0)
+ if (addr != NULL && !SPECIAL_CONST_P(addr))
auto_zone_release(__auto_zone, addr);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080321/d899c8d1/attachment.html
More information about the macruby-changes
mailing list