我從Xcode 4中的Produce> Analyze選項中看到一些不尋常的反應,這些反應似乎對我沒有任何意義。例如,我總是被教導以釋放dealloc
方法實例變量,但分析給了我這樣的:XCode產品>分析結果
- (void)dealloc {
[self.fileName release];
//Incorrect decrement of the reference count of an object that is not owned at this point by the caller
非常混亂,任何人都可以闡明這一個有些輕?
屬性看起來是這樣的:
@property (nonatomic, retain) NSString * fileName;
你有沒有實際分配一個值,伊娃? – cpjolicoeur