mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
dd21458fd6
commit
c0ea966344
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue