react-native-image-sequence
react-native-image-sequence copied to clipboard
fix memory leak
in loadBitmapByExternalURL
,InputStream not closed
Is it the source problem of the issue #2 ?
Tested today, your module makes crash the application when it reaches 0% free, Thanks to this pull request, the memory used remains the same.
NativeAlloc concurrent copying GC freed 31199(1117KB) AllocSpace objects, 12(528KB) LOS objects, 49% free, 6MB/13MB, paused 245us total 100.438ms
Please accept the pull request which is excellent, no more crash with it.
This also solved my issue. The app would totally freeze due to too many files being open. I cloned the fork from @jinshiyi11 and works nicely. It would be excellent if this could be merged.