mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Don't crash is port creation fails
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6890 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4f1c5370e3
commit
a5a2a179bb
1 changed files with 5 additions and 2 deletions
|
@ -419,8 +419,11 @@ static NSLock *global_proxies_gate;
|
|||
c = [self alloc];
|
||||
port = [NSPort port];
|
||||
c = [c initWithReceivePort: port sendPort: nil];
|
||||
[d setObject: c forKey: tkey];
|
||||
RELEASE(c);
|
||||
if (c != nil)
|
||||
{
|
||||
[d setObject: c forKey: tkey];
|
||||
RELEASE(c);
|
||||
}
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue