nsstring - self.string not retaining causing memory leaks iphone -


i have few dates , strings declared nonatomic , retained.

when set date or change string using self.string isn't being retained. if force [string retain] have no issues, although creates memory leaks.

any ideas or how or i'm doing wrong?

cheers

update:

    @property (nonatomic, retain)nsdate *time;     self.time = [cal datefromcomponents:comps]; 

self.time doesn't retain. have [time retain];

you either releasing string twice or accessing after has been released. if post code, determine what's going on if that's not enough go by.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -