Index: src/OFExceptions.m ================================================================== --- src/OFExceptions.m +++ src/OFExceptions.m @@ -511,13 +511,13 @@ @implementation OFAddressTranslationFailedException + newWithClass: (Class)class_ andNode: (const char*)node_ andService: (const char*)service_ { - return [self newWithClass: class_ - andNode: node_ - andService: service_]; + return [[self alloc] initWithClass: class_ + andNode: node_ + andService: service_]; } - initWithClass: (Class)class_ andNode: (const char*)node_ andService: (const char*)service_ @@ -575,13 +575,13 @@ @implementation OFConnectionFailedException + newWithClass: (Class)class_ andHost: (const char*)host_ andPort: (uint16_t)port_ { - return [self newWithClass: class_ - andHost: host_ - andPort: port_]; + return [[self alloc] initWithClass: class_ + andHost: host_ + andPort: port_]; } - initWithClass: (Class)class_ andHost: (const char*)host_ andPort: (uint16_t)port_