Clean up exceptions.
The description generated by %@ is automatically released, so no need for an autorelease pool.
This commit is contained in:
parent
c44fefa67c
commit
954e3e1dda
1 changed files with 2 additions and 19 deletions
|
@ -64,15 +64,11 @@
|
||||||
|
|
||||||
- (OFString*)description
|
- (OFString*)description
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool;
|
|
||||||
|
|
||||||
if (description != nil)
|
if (description != nil)
|
||||||
return description;
|
return description;
|
||||||
|
|
||||||
pool = [[OFAutoreleasePool alloc] init];
|
|
||||||
description = [[OFString alloc] initWithFormat:
|
description = [[OFString alloc] initWithFormat:
|
||||||
@"An exception occurred in class %@!", [self className]];
|
@"An exception occurred in class %@!", inClass];
|
||||||
[pool release];
|
|
||||||
|
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
@ -130,16 +126,12 @@
|
||||||
|
|
||||||
- (OFString*)description
|
- (OFString*)description
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool;
|
|
||||||
|
|
||||||
if (description != nil)
|
if (description != nil)
|
||||||
return description;
|
return description;
|
||||||
|
|
||||||
pool = [[OFAutoreleasePool alloc] init];
|
|
||||||
description = [[OFString alloc] initWithFormat:
|
description = [[OFString alloc] initWithFormat:
|
||||||
@"Stringprep with profile %@ failed on string '%@'!",
|
@"Stringprep with profile %@ failed on string '%@'!",
|
||||||
profile, string];
|
profile, string];
|
||||||
[pool release];
|
|
||||||
|
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
@ -197,16 +189,11 @@
|
||||||
|
|
||||||
- (OFString*)description
|
- (OFString*)description
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool;
|
|
||||||
|
|
||||||
if (description != nil)
|
if (description != nil)
|
||||||
return description;
|
return description;
|
||||||
|
|
||||||
pool = [[OFAutoreleasePool alloc] init];
|
|
||||||
description = [[OFString alloc] initWithFormat:
|
description = [[OFString alloc] initWithFormat:
|
||||||
@"IDNA operation %@ failed on string '%@'!",
|
@"IDNA operation %@ failed on string '%@'!", operation, string];
|
||||||
operation, string];
|
|
||||||
[pool release];
|
|
||||||
|
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
@ -259,15 +246,11 @@
|
||||||
|
|
||||||
- (OFString*)description
|
- (OFString*)description
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool;
|
|
||||||
|
|
||||||
if (description != nil)
|
if (description != nil)
|
||||||
return description;
|
return description;
|
||||||
|
|
||||||
pool = [[OFAutoreleasePool alloc] init];
|
|
||||||
description = [[OFString alloc] initWithFormat:
|
description = [[OFString alloc] initWithFormat:
|
||||||
@"Authentication failed. Reason: %@!", reason];
|
@"Authentication failed. Reason: %@!", reason];
|
||||||
[pool release];
|
|
||||||
|
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue