Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Retain cycle is preventing the hud from ever being deallocated #22

Open
markkrenek opened this issue May 28, 2012 · 1 comment
Open

Comments

@markkrenek
Copy link

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.

@atomton atomton closed this as completed Aug 17, 2012
@atomton atomton reopened this Aug 17, 2012
@dhoerl
Copy link

dhoerl commented Feb 20, 2014

I added this to my fork, dhoerl/ATMHud, which I plan to support for a long time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants