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

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

@markkrenek

Description

@markkrenek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions