This is what Instruments is pointing to.
students = [[NSMutableArray alloc] initWithArray:[course.students allObjects]];
I’m releasing the array in dealloc. In the rest of my code I’m only calling the array and I’m not alloc’ing it again. I’ve also tried filling the array via fast enumeration and I get the same problem.
Just to be sure, add an
autoreleaseto it, likeThen see what happens. (maybe assign it to self.students btw, and make that a retained property using
@property (nonatomic,retain))