Index: src/OFMutableArray.m ================================================================== --- src/OFMutableArray.m +++ src/OFMutableArray.m @@ -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 Index: src/OFMutableDictionary.m ================================================================== --- src/OFMutableDictionary.m +++ src/OFMutableDictionary.m @@ -277,11 +277,10 @@ #ifdef OF_HAVE_BLOCKS - (void)enumerateKeysAndObjectsUsingBlock: (of_dictionary_enumeration_block_t)block { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; size_t i; BOOL stop = NO; unsigned long mutations2 = mutations; for (i = 0; i < size && !stop; i++) { @@ -288,22 +287,17 @@ if (mutations != mutations2) @throw [OFEnumerationMutationException newWithClass: isa object: self]; - if (data[i] != NULL && data[i] != DELETED) { + if (data[i] != NULL && data[i] != DELETED) block(data[i]->key, data[i]->object, &stop); - [pool releaseObjects]; - } } - - [pool release]; } - (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; size_t i; BOOL stop = NO; unsigned long mutations2 = mutations; for (i = 0; i < size && !stop; i++) { @@ -321,14 +315,10 @@ selector: _cmd]; [new retain]; [data[i]->object release]; data[i]->object = new; - - [pool releaseObjects]; } } - - [pool release]; } #endif @end