Ben Copsey

ASIWebPageRequest - fix leak (closes gh-174)

@@ -369,7 +369,7 @@ static NSMutableArray *requestsUsingXMLParser = nil; @@ -369,7 +369,7 @@ static NSMutableArray *requestsUsingXMLParser = nil;
369 369
370 // Strip the content encoding if the original response was gzipped 370 // Strip the content encoding if the original response was gzipped
371 if ([self isResponseCompressed]) { 371 if ([self isResponseCompressed]) {
372 - NSMutableDictionary *headers = [[self responseHeaders] mutableCopy]; 372 + NSMutableDictionary *headers = [[[self responseHeaders] mutableCopy] autorelease];
373 [headers removeObjectForKey:@"Content-Encoding"]; 373 [headers removeObjectForKey:@"Content-Encoding"];
374 [self setResponseHeaders:headers]; 374 [self setResponseHeaders:headers];
375 } 375 }