iOS dev tip: release your @synthesized properties
Automatically @synthesize’d properties need to be manually released.
When you declare an Objective-C @property, then use @synthesize to automatically generate setters and getters, it seems intuitive that the compiler would somehow take care of releasing the object, too:
@property(retain) NSString *myString; ... @synthesize myString;
Unfortunately, that’s not the case. What @synthesize does is it basically just inserts the implementation for the methods
-(NSString*)myString -(void)setMyString:(NSString*)newString
The setProperty method will properly release the old object when you set the new one, but there’s no code to release the property at the end of the parent object’s lifetime.
So, if your properties are declared with the retain or copy attribute, remember to release them when you’re done.

