Sticking to the rule of releasing everything I'm creating, why does the line [cellText release] crash my app? It must be something really simple, I'm quite new to iPhone apps dev.
...
NSMutableString *cellText = [[NSMutableString alloc] initWithString:@""];
// the cell is a section cell
if (/* some condition */) {
cellText = @"some text";
}
// why does this make the app crash?!
[cellText release];
...