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:
Richard Frith-MacDonald 2000-07-08 07:14:08 +00:00
parent 4f1c5370e3
commit a5a2a179bb

View file

@ -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;
}