我得到的内存泄漏在我的对象设置可以任何一个帮助我解决这个??对象内存泄漏
代码:
- (void)setEstimateTax2Type:(NSString *)aEstimateTax2Type
{
if ((!estimateTax2Type && !aEstimateTax2Type) || (estimateTax2Type && aEstimateTax2Type && [estimateTax2Type isEqualToString:aEstimateTax2Type])) return;
[estimateTax2Type release];
estimateTax2Type = [aEstimateTax2Type copy] ;
}
感谢的提前。
Monish。
仅当两个对象都为零或相等时条件终止方法。所以它应该是可以的。 – JeremyP 2010-07-02 08:48:21