Can anyone explain why this is not a memory leak?
@implementation MyDocument
- (id)init
{
self = [super init]; // memory leak?
if (self)
{
// Add your subclass-specific initialization here.
// If an error occurs here, send a [self release] message and return nil.
}
return self;
}
// rest of auto-generated coded deleted for brevity
@end