@@ -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