@@ -24,25 +24,24 @@ * * Every thread has its own stack of autorelease pools. */ @interface OFAutoreleasePool: OFObject { - OFAutoreleasePool *nextPool, *previousPool; - id *objects; - size_t count, size; + void *pool; + BOOL ignoreRelease; } /** * \brief Adds an object to the autorelease pool at the top of the * thread-specific autorelease pool stack. * * \param object The object to add to the autorelease pool + * \return The object */ -+ (void)addObject: (id)object; ++ (id)addObject: (id)object; + (void)_releaseAll; -- (void)_addObject: (id)object; /** * \brief Releases all objects in the autorelease pool. * * This does not free the memory allocated to store pointers to the objects in