@@ -222,11 +222,10 @@ } #ifdef OF_HAVE_BLOCKS - (void)enumerateObjectsUsingBlock: (of_array_enumeration_block_t)block { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; id *cArray = [array cArray]; size_t i, count = [array count]; BOOL stop = NO; unsigned long mutations2 = mutations; @@ -235,19 +234,15 @@ @throw [OFEnumerationMutationException newWithClass: isa object: self]; block(cArray[i], i, &stop); - [pool releaseObjects]; } - - [pool release]; } - (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; id *cArray = [array cArray]; size_t i, count = [array count]; BOOL stop = NO; unsigned long mutations2 = mutations; @@ -266,13 +261,9 @@ selector: _cmd]; [newObject retain]; [cArray[i] release]; cArray[i] = newObject; - - [pool releaseObjects]; } - - [pool release]; } #endif @end