Retain out port while invalidating to avoid deallocation during invalidation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4284 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-24 13:38:28 +00:00
parent dd21458fd6
commit c0ea966344

View file

@ -2075,6 +2075,7 @@ static NSMapTable *out_port_bag = NULL;
{
id port = _polling_in_port;
[self retain];
_polling_in_port = nil;
/* This is here, and not in -dealloc, because invalidated
@ -2106,6 +2107,7 @@ static NSMapTable *out_port_bag = NULL;
strerror(errno)];
}
}
[self release];
}
}