[macruby-changes] [3120] MacRuby/trunk/gcd.c
source_changes at macosforge.org
source_changes at macosforge.org
Mon Dec 14 18:10:33 PST 2009
Revision: 3120
http://trac.macosforge.org/projects/ruby/changeset/3120
Author: lsansonetti at apple.com
Date: 2009-12-14 18:10:31 -0800 (Mon, 14 Dec 2009)
Log Message:
-----------
don't try to release a NULL semaphore
Modified Paths:
--------------
MacRuby/trunk/gcd.c
Modified: MacRuby/trunk/gcd.c
===================================================================
--- MacRuby/trunk/gcd.c 2009-12-15 02:07:02 UTC (rev 3119)
+++ MacRuby/trunk/gcd.c 2009-12-15 02:10:31 UTC (rev 3120)
@@ -874,7 +874,9 @@
static void
rb_semaphore_finalize(void *rcv, SEL sel)
{
- dispatch_release(RSemaphore(rcv)->sem);
+ if (RSemaphore(rcv)->sem != NULL) {
+ dispatch_release(RSemaphore(rcv)->sem);
+ }
if (rb_semaphore_finalize_super != NULL) {
((void(*)(void *, SEL))rb_semaphore_finalize_super)(rcv, sel);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091214/168cf744/attachment.html>
More information about the macruby-changes
mailing list