Index: src/OFApplication.m ================================================================== --- src/OFApplication.m +++ src/OFApplication.m @@ -120,10 +120,12 @@ delegate = [[cls alloc] init]; [app setDelegate: delegate]; [app OF_run]; + + [delegate release]; return 0; } @implementation OFApplication Index: src/OFMutableString.m ================================================================== --- src/OFMutableString.m +++ src/OFMutableString.m @@ -308,12 +308,12 @@ - (void)appendCharacters: (of_unichar_t*)characters length: (size_t)length { void *pool = objc_autoreleasePoolPush(); - return [self appendString: [OFString stringWithCharacters: characters - length: length]]; + [self appendString: [OFString stringWithCharacters: characters + length: length]]; objc_autoreleasePoolPop(pool); } - (void)appendUTF8String: (const char*)UTF8String Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -232,13 +232,13 @@ thread->_returnValue = [object retain]; [thread handleTermination]; thread->_running = OF_THREAD_WAITING_FOR_JOIN; + objc_autoreleasePoolPop(thread->_pool); } - objc_autoreleasePoolPop(thread->_pool); [OFAutoreleasePool OF_handleThreadTermination]; [thread release]; of_thread_exit();