hi all,
i have an nsarray @propery(nonatomic, retain) in a class MyClass
i do self.array = [MyAnotherclass getArray]; {static analyser points a memory leak here}
in the getArray function of another class I allocate NSArray
now the question is should i autorelease NSArray inside getArray function ?
if yes, should I also do a release in dealloc of MyClass like [self.array release]; {confusion because, i am not allocating in MyClass ! }
i have an nsarray @propery(nonatomic, retain) in a class MyClass
i do self.array = [MyAnotherclass getArray]; {static analyser points a memory leak here}
in the getArray function of another class I allocate NSArray
now the question is should i autorelease NSArray inside getArray function ?
if yes, should I also do a release in dealloc of MyClass like [self.array release]; {confusion because, i am not allocating in MyClass ! }