Index: src/OFArray.m ================================================================== --- src/OFArray.m +++ src/OFArray.m @@ -580,21 +580,16 @@ } #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; - for (i = 0; i < count && !stop; i++) { + for (i = 0; i < count && !stop; i++) block(cArray[i], i, &stop); - [pool releaseObjects]; - } - - [pool release]; } - (OFArray*)mappedArrayUsingBlock: (of_array_map_block_t)block { OFArray *ret; Index: src/OFDictionary.m ================================================================== --- src/OFDictionary.m +++ src/OFDictionary.m @@ -732,22 +732,16 @@ #ifdef OF_HAVE_BLOCKS - (void)enumerateKeysAndObjectsUsingBlock: (of_dictionary_enumeration_block_t)block { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; size_t i; BOOL stop = NO; - for (i = 0; i < size && !stop; i++) { - if (data[i] != NULL && data[i] != DELETED) { + for (i = 0; i < size && !stop; i++) + if (data[i] != NULL && data[i] != DELETED) block(data[i]->key, data[i]->object, &stop); - [pool releaseObjects]; - } - } - - [pool release]; } - (OFDictionary*)mappedDictionaryUsingBlock: (of_dictionary_map_block_t)block { OFMutableDictionary *new = [OFMutableDictionary dictionary];