Retain cycle is preventing the hud from ever being deallocated
markkrenek opened this issue · comments
ATMHudView retains its parent ATMHud object when initWithFrame:andController: is called. But ATMHud also retains the ATMHudView. Therefore a retain cycle and nothing can ever get deallocated.
The faulty line is this, in ATMHudView.h:
@property (nonatomic, retain) ATMHud *p;
That needs to change to assign and then in [ATMHudView dealloc], p should not be released.
I added this to my fork, dhoerl/ATMHud, which I plan to support for a long time.