Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX #9751 - Cancelling offscreen image loads causing crashes
Summary: This fixes #9751 We were seeing the same issues as the original reporter. I'm not an expert on this code, so apologies if it's naive, but we haven't seen the crash since making this change. From my understanding of it, it seems like the `cancelLoad` block was being released before the block returned by `_loadImageOrDataWithURLRequest:` was called. This PR checks the `cancelled` flag before calling `cancelLoad()`. Closes #10016 Differential Revision: D3902723 Pulled By: javache fbshipit-source-id: 75cd115e28694105c6fc29469986998ca0d4cd09
- Loading branch information
1a62b66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same pattern is repeated at line 500, I think you need to add the same fix here.