Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -66,10 +66,11 @@ #define PRE_IVAR ((struct pre_ivar*)((char*)self - PRE_IVAR_ALIGN)) static struct { Class isa; } alloc_failed_exception; +static Class autoreleasepool = Nil; size_t of_pagesize; #ifdef NEED_OBJC_SYNC_INIT extern BOOL objc_sync_init(); @@ -125,10 +126,11 @@ #endif } + (void)initialize { + autoreleasepool = [OFAutoreleasePool class]; } + alloc { OFObject *instance; @@ -609,11 +611,11 @@ #endif } - autorelease { - [OFAutoreleasePool addObjectToTopmostPool: self]; + [autoreleasepool addObjectToTopmostPool: self]; return self; } - (void)dealloc