recycle the subsampling imageview on destroy

This commit is contained in:
tibbi 2017-12-29 15:46:15 +01:00
parent da80d24606
commit d353f02a51
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ class PhotoFragment : ViewPagerFragment() {
super.onDestroyView()
if (activity?.isActivityDestroyed() == false) {
Glide.with(context).clear(view.gif_view)
view.subsampling_view.recycle()
}
}