We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6698910 + b271cbb commit 6b137fbCopy full SHA for 6b137fb
SDWebImage/SDImageCache.m
@@ -48,7 +48,6 @@ + (SDImageCache *)sharedImageCache {
48
static id instance;
49
dispatch_once(&once, ^{
50
instance = [self new];
51
- kPNGSignatureData = [NSData dataWithBytes:kPNGSignatureBytes length:8];
52
});
53
return instance;
54
}
@@ -61,6 +60,9 @@ - (id)initWithNamespace:(NSString *)ns {
61
60
if ((self = [super init])) {
62
NSString *fullNamespace = [@"com.hackemist.SDWebImageCache." stringByAppendingString:ns];
63
+ // initialise PNG signature data
64
+ kPNGSignatureData = [NSData dataWithBytes:kPNGSignatureBytes length:8];
65
+
66
// Create IO serial queue
67
_ioQueue = dispatch_queue_create("com.hackemist.SDWebImageCache", DISPATCH_QUEUE_SERIAL);
68
0 commit comments