smartcrop
smartcrop copied to clipboard
Memory issues
Works very nice but getting crash if I try to add and modify multiple image continuously using this.
screenshot is only for one image filtering. How to resolve this?
This issue is happening because of non-release of memory once consumed. The solution to this is to release the allocated memory once the work is done. I have found a fix to this memory issue by adding the following statements in UIImage+fixOrientation.m file in function fixOrientation.
UIImage* orientedImage = [UIImage imageWithCGImage:cgImage]; // Release from memory CGImageRelease(cgImage); CGContextRelease(ctx); return orientedImage;

Using this solution, you can capture as many as images you want without affecting the memory.