흔한 원인
- Android — Activity 참조를 Singleton이 붙듦
- iOS — delegate·closure retain cycle (weak self 필요)
- 리스너 미해제
- Static·Singleton에 Context 저장
탐지
LeakCanary(Android), Xcode Instruments Leaks.
해제되지 않는 참조. Activity·ViewController retain cycle 흔한 원인.
LeakCanary(Android), Xcode Instruments Leaks.