Here is my code:
- (void)showRectangles
{
NSMutableArray *rects = [[NSMutableArray alloc]init];
//....rest of code here
[rects release];
}
The problem here is that when I analyze the code, it gives me this warning:
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
I don't understand why this gives me a warning. Can anyone explain why?