.arrayOfPerformances ( -dealloc), , , .
-dealloc:
- (void)dealloc
{
... other deallocs
self.arrayOfPerformances = nil;
self.currentPerformanceObject = nil;
[super dealloc];
}
, @BoltClock, NSMutableArray. - autoreleased:
self.arrayOfPerformances = [NSMutableArray array];
, currentPerformanceObject, nil, retain ed nil . , :
if (self.arrayOfPerformances == nil) {
self.arrayOfPerformances = [NSMutableArray array];
}
[self.arrayOfPerformances addObject:self.currentPerformanceObject];
self.currentPerformanceObject = nil;