Hi all

we have an object that gets initialized like most other objects

-(id)init
{
        self = [ super init ];
        if ( self ){
                ...do something;
        }
        return self;
}

if [ super init ] returns nil does this cause a leak, as the memory has already been created by calling alloc when trying to create the object

AnObject        *object = [[ AnObject alloc ] init ];

I am sure the answer is simple but this suddenly stumbled me.

Thanks

Reza








_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to