diff --git a/src/IRCConnection.m b/src/IRCConnection.m index fb3323f..3fdfe15 100644 --- a/src/IRCConnection.m +++ b/src/IRCConnection.m @@ -173,7 +173,6 @@ @try { line = [sock tryReadLine]; } @catch (OFInvalidEncodingException *e) { - [e dealloc]; line = [sock tryReadLineWithEncoding: OF_STRING_ENCODING_WINDOWS_1252]; } diff --git a/src/IRCUser.m b/src/IRCUser.m index 3718ac8..ea894f8 100644 --- a/src/IRCUser.m +++ b/src/IRCUser.m @@ -48,17 +48,19 @@ if ((tmp2 = strdup([string UTF8String])) == NULL) @throw [OFOutOfMemoryException - newWithClass: isa - requestedSize: [string UTF8StringLength]]; + exceptionWithClass: isa + requestedSize: [string UTF8StringLength]]; if ((tmp = strchr(tmp2, '@')) == NULL) - @throw [OFInvalidFormatException newWithClass: isa]; + @throw [OFInvalidFormatException + exceptionWithClass: isa]; *tmp = '\0'; hostname = [[OFString alloc] initWithUTF8String: tmp + 1]; if ((tmp = strchr(tmp2, '!')) == NULL) - @throw [OFInvalidFormatException newWithClass: isa]; + @throw [OFInvalidFormatException + exceptionWithClass: isa]; *tmp = '\0'; username = [[OFString alloc] initWithUTF8String: tmp + 1];