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