Hi guys,
I am getting the memory leak in my objects setters can any one help me to resolve this??
Code:
- (void)setEstimateTax2Type:(NSString *)aEstimateTax2Type
{
if ((!estimateTax2Type && !aEstimateTax2Type) || (estimateTax2Type && aEstimateTax2Type && [estimateTax2Type isEqualToString:aEstimateTax2Type])) return;
[estimateTax2Type release];
estimateTax2Type = [aEstimateTax2Type copy] ;
}
Thank's in advance.
Monish.