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 2000-07-08 07:14:08 +00:00
parent 65b5c61641
commit d269bf830f

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