我得到的內存泄漏在我的對象設置可以任何一個幫助我解決這個??對象內存泄漏
代碼:
- (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