Instruments shows Leaks, but...?
I have a class that declares 4 pointer ivars.
Each pointer gets a certain amount of memory malloced when the class is created and initialized.
I create 2 instances of this class in the viewController's viewDidLoad
by alloc/init.
I release both instances in the viewController dealloc method.
I also free the 4 ivars pointer memory in the class dealloc.
Both classes live for the life of the app and don't go away unless the app is quit.
So when I run Instruments to test for leaks it shows these 2 class instances and their malloced ivars as leaks.
Are these valid leaks even though they are accounted for in the dealloc methods? Should I just ignore what instruments is telling me?
Running Static Analyzer shows no problems.
__________________
Learning IOS development one crash at a time.
|