@@ -8,20 +8,22 @@ * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFObject.h" +#import "OFArray.h" +#import "OFList.h" /** * The OFAutoreleasePool class provides a class that keeps track of objects * that will be released when the autorelease pool is released. * Every thread has its own stack of autorelease pools. */ @interface OFAutoreleasePool: OFObject { - OFObject **objects; - size_t size; + OFArray *objects; + of_list_object_t *listobj; } /** * Adds an object to the autorelease pool at the top of the thread-specific * stack. @@ -39,12 +41,7 @@ - addToPool: (OFObject*)obj; /** * Releases all objects in the autorelease pool. */ -- release; - -/** - * \returns All objects in the autorelease pool - */ -- (OFObject**)objects; +- releaseObjects; @end