Ahmadalsofi / SOPullUpView

SOPullUpView library for iOS, with pull up gesture 📱🖐️↕️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory Leak in sample project

naloikoevgeni opened this issue · comments

Just click "Map"->Back -> "Hand Picked" -> Back multiple times. The Memory consumption grows until the app would crash.
The memory leak disappears - when we comment out the line:
vc.pullUpControl = self.pullUpControl

Or each time viewController should be dismissed - we need to manually nulify:
self.pullUpControl.pullUpVC = nil
Otherwise there is a circular reference - which doesn't let the app to cleanup its memory.