Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static analyzer issues in UIImage+Resize #14

Open
core-code opened this issue Oct 10, 2013 · 0 comments
Open

static analyzer issues in UIImage+Resize #14

core-code opened this issue Oct 10, 2013 · 0 comments

Comments

@core-code
Copy link

OWActivityViewController/UIImage+Resize.m:63:23: warning: Potential leak of an object
CGImageRetain([self CGImage]);
^
OWActivityViewController/UIImage+Resize.m:80:26: warning: Potential leak of an object stored into 'cgImage'
CGImageRef cgImage = CGBitmapContextCreateImage(context);
^
OWActivityViewController/UIImage+Resize.m:93:5: warning: Incorrect decrement of the reference count of an object that is not owned at this point by the caller
CGImageRelease(imgRef);
^~~~~~~~~~~~~~~~~~~~~~
OWActivityViewController/UIImage+Resize.m:103:5: warning: Incorrect decrement of the reference count of an object that is not owned at this point by the caller
CGImageRelease(imgRef);
^~~~~~~~~~~~~~~~~~~~~~
OWActivityViewController/UIImage+Resize.m:115:5: warning: Incorrect decrement of the reference count of an object that is not owned at this point by the caller
CGImageRelease(imgRef);
^~~~~~~~~~~~~~~~~~~~~~
OWActivityViewController/UIImage+Resize.m:127:5: warning: Incorrect decrement of the reference count of an object that is not owned at this point by the caller
CGImageRelease(imgRef);
^~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant