mariohahn / MHVideoPhotoGallery

A Photo and Video Gallery
MIT License
1.96k stars 352 forks source link

Drift in memory allocation #134

Open themoonlitknight opened 9 years ago

themoonlitknight commented 9 years ago

It seems that some of the memory allocated for presenting a MHGalleryController is never released. I experienced it in my app and decided to profile the sample application in Instruments by tapping on the first image of the collection view tab by opening and closing it repeatedly, allocating and deallocating each time a MHGalleryController.

Here is Instruments showing some screenshots of memory allocation before launching the gallery. It seems to grow by 1.55 MB each time. screenshot

Am I missing something?