Fix: Setup "self" (from super initialisation) before accessing any attribute
This commit is contained in:
parent
c6241bfb75
commit
95db639603
@ -69,11 +69,13 @@ int Dialog_save(char* dest)
|
||||
|
||||
- (id)init
|
||||
{
|
||||
[super init];
|
||||
if ( self = [super init] ) {
|
||||
m_bIsClosed = false;
|
||||
|
||||
return self;
|
||||
}
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL)windowShouldClose:(id)sender
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user