@@ -21,17 +21,17 @@ #import "OFTCPSocket.h" #import "common.h" @implementation OFAddressTranslationFailedException -+ newWithClass: (Class)class_ - socket: (OFTCPSocket*)socket - host: (OFString*)host ++ exceptionWithClass: (Class)class_ + socket: (OFTCPSocket*)socket + host: (OFString*)host { - return [[self alloc] initWithClass: class_ - socket: socket - host: host]; + return [[[self alloc] initWithClass: class_ + socket: socket + host: host] autorelease]; } - initWithClass: (Class)class_ { self = [super initWithClass: class_];