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

Fixed crash caused by decodedImage in CCBufferedImageView being nil. #14

Merged
merged 1 commit into from
Jan 25, 2016

Conversation

nmarisi
Copy link
Contributor

@nmarisi nmarisi commented Jan 25, 2016

I've noticed that occasionally I get a crash when using CCBufferedImageView with progressive JPEGs. The crash is an EXC_BAD_ACCESS on the decodedImage variable in public func connection(connection: NSURLConnection, didReceiveData data: NSData).

This crash is quite easily reproducible if you place the CCBufferedImageView inside a tableview cell.

Adding a guard to make sure that decodedImage is not nil solves the issue.

@neonichu
Copy link
Contributor

Thanks for the contribution 👍

(test failures are unrelated)

neonichu added a commit that referenced this pull request Jan 25, 2016
Fixed crash caused by decodedImage in CCBufferedImageView being nil.
@neonichu neonichu merged commit a70b53c into contentful-labs:master Jan 25, 2016
@nmarisi
Copy link
Contributor Author

nmarisi commented Jan 25, 2016

You welcome, thanks for the library!
Yes, I was wondering why travis CI failed before compiling any code...

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

Successfully merging this pull request may close these issues.

2 participants