mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
backport retain/release fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/stable@25015 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f8f22f6ee8
commit
d878a13343
2 changed files with 6 additions and 0 deletions
|
@ -876,6 +876,7 @@ static void setNonblocking(SOCKET fd)
|
|||
|
||||
- (void) _dispatch
|
||||
{
|
||||
AUTORELEASE(RETAIN(self));
|
||||
/*
|
||||
* Windows only permits a single event to be associated with a socket
|
||||
* at any time, but the runloop system only allows an event handle to
|
||||
|
@ -1089,6 +1090,8 @@ static void setNonblocking(SOCKET fd)
|
|||
{
|
||||
[self _recordError];
|
||||
[self _sendEvent: NSStreamEventErrorOccurred];
|
||||
CloseHandle(h);
|
||||
return;
|
||||
}
|
||||
}
|
||||
[self _setLoopID: (void*)h];
|
||||
|
@ -1609,6 +1612,7 @@ static void setNonblocking(SOCKET fd)
|
|||
|
||||
- (void) _dispatch
|
||||
{
|
||||
AUTORELEASE(RETAIN(self));
|
||||
/*
|
||||
* Windows only permits a single event to be associated with a socket
|
||||
* at any time, but the runloop system only allows an event handle to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue