Skip to content

Conversation

@patrickkempff
Copy link
Contributor

I was playing with leakcanary and noticed some memory leaks on Android. This PR fixes some of them. Credits go to @chaitanya0bhagvan for fixing those already in PR #98. I mainly did split this fix from the border-radius implementation in the same PR.

At the moment the Android implementation uses static constants which never get releaed. Also got rid of HashMap in favor of WeakHashMap.

@DylanVann
Copy link
Owner

Awesome! Thanks so much ✨

Currently master of this repo is the code for what will be the next major release. It will update the Glide version and enable loading local images with FastImage. Just checking you found these bugs on master not on the published version? (I wouldn't be surprised, just double checking)

@patrickkempff
Copy link
Contributor Author

@DylanVann awesome!

I noticed this leak first on 4.0.14 but I am confident it is also present on master. Unfortunately I am not in the position to confirm (test) at the moment.

On a side note, i have patched 4.0.14 with this fix to production (an app with over 2 million downloads and thousands of new users per day) without problems.

@DylanVann DylanVann merged commit 6e0e6f8 into DylanVann:master Jun 8, 2018
saghul added a commit to jitsi/react-native-fast-image that referenced this pull request Aug 30, 2018
saghul added a commit to saghul/jitsi-meet that referenced this pull request Aug 30, 2018
Fixes a memory leak in Android: DylanVann/react-native-fast-image#214

We are using our fork which is 4.0.14 + the leak fix because the last version
(5.0.3 at the time of this writing) contains a bug that prevents us for using
it: DylanVann/react-native-fast-image#208
lyubomir pushed a commit to jitsi/jitsi-meet that referenced this pull request Aug 30, 2018
Fixes a memory leak in Android: DylanVann/react-native-fast-image#214

We are using our fork which is 4.0.14 + the leak fix because the last version
(5.0.3 at the time of this writing) contains a bug that prevents us for using
it: DylanVann/react-native-fast-image#208
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

Successfully merging this pull request may close these issues.

2 participants