mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
1a62b66c51
Summary: This fixes https://github.com/facebook/react-native/issues/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 https://github.com/facebook/react-native/pull/10016 Differential Revision: D3902723 Pulled By: javache fbshipit-source-id: 75cd115e28694105c6fc29469986998ca0d4cd09