|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
--- Foo.m ---
@implementation
- (id) init
{
self = [super init];
if (self != nil)
{
// Fake a failure
[self release]; // or should I call dealloc???
return nil;
}
return self;
}
@end
--- End of Foo.m ---
Is the above correct form to prevent leaking?
-- Greg Parker email@hidden Runtime Wrangler
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >Memory cleanup when init fails? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.