Aghajari / ZoomHelper

ZoomHelper will make any view to be zoomable just like Instagram pinch-to-zoom
Apache License 2.0
247 stars 22 forks source link

holding a reference to `zoomableViewParent` leads to memory leaks #13

Open mateot1 opened 2 years ago

mateot1 commented 2 years ago

In ZoomHelper.kt the zoomableView reference is cleared in onDismissDialog, however the zoomableViewParent reference is never cleared, so it still exists after the Fragment is destroyed. This field should be set to null after the placeholder is swapped out with the original view.