0
这里内部重分配的NSMutableArray的是我的代码:一个功能
- (void)showRectangles
{
NSMutableArray *rects = [[NSMutableArray alloc]init];
//....rest of code here
[rects release];
}
这里的问题是,当我对代码进行分析,它给了我这样的警告:
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
我不不明白为什么这给我一个警告。谁能解释为什么?
“剩余代码”中的某些内容已重新分配或已释放“rects”;这两条线本身是完全正确的。 – 2012-07-23 06:04:17