removed memory leak
This commit is contained in:
parent
a27c543314
commit
3736591f73
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *r
|
||||||
imageRef = CGImageCreateCopy([image CGImage]);
|
imageRef = CGImageCreateCopy([image CGImage]);
|
||||||
|
|
||||||
if (!imageRef) {
|
if (!imageRef) {
|
||||||
|
CGDataProviderRelease(dataProvider);
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue