Explorar o código

destroy pthread_mutex on dealloc

ibireme %!s(int64=9) %!d(string=hai) anos
pai
achega
8adb9893ee
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      YYImage/YYImageCoder.m

+ 1 - 0
YYImage/YYImageCoder.m

@@ -1530,6 +1530,7 @@ CGImageRef YYCGImageCreateWithWebPData(CFDataRef webpData,
     if (_webpSource) WebPDemuxDelete(_webpSource);
 #endif
     if (_blendCanvas) CFRelease(_blendCanvas);
+    pthread_mutex_destroy(&_lock);
 }
 
 + (instancetype)decoderWithData:(NSData *)data scale:(CGFloat)scale {