I have the following block giving me problems in the performance tool: Particularly it is saying STObject is leaking. I am not sure why?
for (NSDictionary *message in messages)
{
STObject *mySTObject = [[STObject alloc] init];
mySTObject.stID = [message valueForKey:@"id"];
[items addObject:mySTObject];
[mySTObject release]; mySTObject = nil;
}
[receivedData release]; receivedData=nil;
[conn release]; conn=nil;
UPDATE:
items is @property(nonatomic, retain) will this cause the retain count to be +2?