@@ -310,10 +310,11 @@ } - (void)of_writeToStream: (OFStream *)stream encoding: (OFStringEncoding)encoding { + void *pool = objc_autoreleasePoolPush(); unsigned char buffer[512]; unsigned long long modificationDate; uint16_t checksum = 0; stringToBuffer(buffer, _fileName, 100, encoding); @@ -361,7 +362,9 @@ stringToBuffer(buffer + 148, [OFString stringWithFormat: @"%06" PRIo16, checksum], 7, OFStringEncodingASCII); [stream writeBuffer: buffer length: sizeof(buffer)]; + + objc_autoreleasePoolPop(pool); } @end