@bradhowes thanks for sharing. I don't know how to apply that in Objective-C world but it looks interesting.
It turned out that in my case deinit() wasn't called because of retain cycles in Swift, which were actually quite easy to fix.
Topic:
App & System Services
SubTopic:
Core OS
Tags: