Krisiacik / ImageViewer

An image viewer à la Twitter
MIT License
2.53k stars 385 forks source link

Memory Leak /Retain Cycles resolved #215

Open ugenlik opened 5 years ago

ugenlik commented 5 years ago

For a little while I didn't realize pagingDataSource is also holding a reference to itemsDataSource...

Making itemsDelegate and itemsDataSource weak then passing the weak value to GalleryPagingDataSource resolved my issues.

Merge it with grain of salt....