]> gitweb.factorcode.org Git - factor.git/commitdiff
core-foundation.run-loop: cleanup
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 24 Feb 2010 08:18:29 +0000 (21:18 +1300)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 24 Feb 2010 08:18:29 +0000 (21:18 +1300)
basis/core-foundation/run-loop/run-loop.factor

index e2ba06d61fed3d1291df32c7936bf913a7934ccf..56b5a9c7985f7742bc3a818711f620d575067428 100644 (file)
@@ -1,4 +1,4 @@
-! Copyright (C) 2008 Slava Pestov
+! Copyright (C) 2008, 2010 Slava Pestov
 ! See http://factorcode.org/license.txt for BSD license.
 USING: accessors alien alien.c-types alien.syntax kernel math
 namespaces sequences destructors combinators threads heaps
@@ -92,7 +92,10 @@ TUPLE: run-loop fds sources timers ;
     ] bi ;
 
 : invalidate-run-loop-timers ( -- )
-    run-loop [ [ [ CFRunLoopTimerInvalidate ] [ CFRelease ] bi ] each V{ } ] change-timers drop ;
+    run-loop [
+        [ [ CFRunLoopTimerInvalidate ] [ CFRelease ] bi ] each
+        V{ } clone
+    ] change-timers drop ;
 
 <PRIVATE