Fixing memory leak in AFImageRequest +operationWithRequest:callback:
This commit is contained in:
parent
3f851b0a23
commit
538d244a46
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ static inline CGSize kAFImageRequestRoundedCornerRadii(CGSize imageSize) {
|
|||
@synthesize callback = _callback;
|
||||
|
||||
+ (id)operationWithRequest:(NSURLRequest *)urlRequest callback:(AFImageRequestOperationCallback *)callback {
|
||||
return [[self alloc] initWithRequest:urlRequest callback:callback];
|
||||
return [[[self alloc] initWithRequest:urlRequest callback:callback] autorelease];
|
||||
}
|
||||
|
||||
- (id)initWithRequest:(NSURLRequest *)urlRequest callback:(AFImageRequestOperationCallback *)callback {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue