dont unreigster non existent named port

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26935 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2008-10-18 23:07:03 +00:00
parent fcb9767969
commit b078bfc7c9
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-10-19 Riccardo Mottola <rmottola@users.sf.net>>
* Source/GSServicesManager.m: dont unreigster non existent named port
2008-10-18 19:06-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSWindow.m: Remove code in stringWithSavedFrame which was causing a

View file

@ -142,7 +142,7 @@ NSRegisterServicesProvider(id provider, NSString *name)
ns = [NSPortNameServer systemDefaultPortNameServer];
namedPort = [ns portForName: name];
if ([listenerConnection receivePort] == namedPort)
if (namedPort && [listenerConnection receivePort] == namedPort)
{
[ns removePortForName: name];
namedPort = nil;