Index: src/OFAutoreleasePool.m ================================================================== --- src/OFAutoreleasePool.m +++ src/OFAutoreleasePool.m @@ -89,11 +89,11 @@ pool_list = get_tls(pool_list_key); if (pool_list == nil) { pool_list = [[OFList alloc] - initWithRetainAndReleaseEnabled: NO]; + initWithoutRetainAndRelease]; set_tls(pool_list_key, pool_list); } listobj = [pool_list append: self]; } Index: src/OFList.h ================================================================== --- src/OFList.h +++ src/OFList.h @@ -31,17 +31,16 @@ * \return A new autoreleased OFList */ + list; /** - * Initializes an already allocated OFList. + * Initializes an already allocated OFList that does not retain/releas objects + * added to it.. * - * \param enabled Whether release / retain should be called when an object is - * added / removed. Default: YES * \return An initialized OFList */ -- initWithRetainAndReleaseEnabled: (BOOL)enabled; +- initWithoutRetainAndRelease; /** * \return The first object in the list */ - (of_list_object_t*)first; Index: src/OFList.m ================================================================== --- src/OFList.m +++ src/OFList.m @@ -28,16 +28,16 @@ } return self; } -- initWithRetainAndReleaseEnabled: (BOOL)enabled +- initWithoutRetainAndRelease { if ((self = [super init])) { first = NULL; last = NULL; - retain_and_release = enabled; + retain_and_release = NO; } return self; }