mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 12:21:34 +00:00
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:
parent
acf6d13308
commit
612a141f28
1 changed files with 76 additions and 73 deletions
|
@ -145,6 +145,8 @@
|
|||
|
||||
|
||||
- (id) initWithDevice: (void *)device
|
||||
{
|
||||
if (self)
|
||||
{
|
||||
// Save/set initial state...
|
||||
gsDevice = device;
|
||||
|
@ -242,6 +244,7 @@
|
|||
win->surface = (void*)self;
|
||||
}
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue