znchen
znchen
Could you please let me know when the memory leak will be fixed?
maybe I am wrong, 'resultBufferData' is designed to release memory with image's life cycle
copy from pic: question: CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, result->data, result->rowBytes * result->height, FreeImageData); CGImageRef imageRef = CGImageCreate(result->width, result->height, bitsPerComponent, bitsPerPixel, rowBytes, colorSpace, bitmapInfo, provider, NULL, NO, renderingIntent); provider 会被持有吗?如果 free(result->data)...