Skip to content

Commit

Permalink
Cleaned up an unnecessary autorelease.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanQuatermain committed Apr 14, 2009
1 parent 35e36cb commit 2e43715
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions StreamingXMLParser/AQXMLParser.m
Expand Up @@ -738,8 +738,10 @@ - (id) initWithStream: (NSInputStream *) stream

- (id) initWithData: (NSData *) data
{
NSInputStream * stream = [[[NSInputStream alloc] initWithData: data] autorelease];
return ( [self initWithStream: stream] );
NSInputStream * stream = [[NSInputStream alloc] initWithData: data];
id result = [self initWithStream: stream];
[stream release];
return ( result );
}

- (void) dealloc
Expand Down

0 comments on commit 2e43715

Please sign in to comment.