Explorar el Código

destroy pthread_mutex on dealloc

ibireme hace 9 años
padre
commit
8adb9893ee
Se han modificado 1 ficheros con 1 adiciones y 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 {