Selaa lähdekoodia

bugfix: #6 memory leak

ibireme 9 vuotta sitten
vanhempi
commit
6f877df1a9
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      YYWebImage/YYWebImageOperation.m

+ 1 - 2
YYWebImage/YYWebImageOperation.m

@@ -426,8 +426,7 @@ static NSData *JPEGSOSMarker() {
         return cachedResponse;
     } else {
         // ignore NSURLCache
-        NSCachedURLResponse *response = [[NSCachedURLResponse alloc] initWithResponse:cachedResponse.response data:cachedResponse.data userInfo:cachedResponse.userInfo ? cachedResponse.userInfo : @{} storagePolicy:NSURLCacheStorageNotAllowed];
-        return response;
+        return nil;
     }
 }