Check for self=nil before processing in init

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@36603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2013-05-09 01:32:02 +00:00
parent acf6d13308
commit 612a141f28

View file

@ -146,6 +146,8 @@
- (id) initWithDevice: (void *)device
{
if (self)
{
// Save/set initial state...
gsDevice = device;
_surface = NULL;
@ -242,6 +244,7 @@
win->surface = (void*)self;
}
}
}
return self;
}