mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Tidied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a7641b814c
commit
e1ade6ed23
2 changed files with 22 additions and 10 deletions
|
@ -1768,16 +1768,19 @@ static Class tcpPortClass;
|
|||
}
|
||||
[tcpPortLock unlock];
|
||||
|
||||
handleArray = NSAllMapTableValues(handles);
|
||||
i = [handleArray count];
|
||||
while (i-- > 0)
|
||||
if (handles != 0)
|
||||
{
|
||||
GSTcpHandle *handle = [handleArray objectAtIndex: i];
|
||||
handleArray = NSAllMapTableValues(handles);
|
||||
i = [handleArray count];
|
||||
while (i-- > 0)
|
||||
{
|
||||
GSTcpHandle *handle = [handleArray objectAtIndex: i];
|
||||
|
||||
[handle invalidate];
|
||||
[handle invalidate];
|
||||
}
|
||||
NSFreeMapTable(handles);
|
||||
handles = 0;
|
||||
}
|
||||
NSFreeMapTable(handles);
|
||||
handles = 0;
|
||||
[super invalidate];
|
||||
}
|
||||
DO_UNLOCK(myLock);
|
||||
|
|
|
@ -419,9 +419,18 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
|
|||
NSZoneFree(timers->zone, (void*)timers);
|
||||
GSIArrayEmpty(watchers);
|
||||
NSZoneFree(watchers->zone, (void*)watchers);
|
||||
NSFreeMapTable(_efdMap);
|
||||
NSFreeMapTable(_rfdMap);
|
||||
NSFreeMapTable(_wfdMap);
|
||||
if (_efdMap != 0)
|
||||
{
|
||||
NSFreeMapTable(_efdMap);
|
||||
}
|
||||
if (_rfdMap != 0)
|
||||
{
|
||||
NSFreeMapTable(_rfdMap);
|
||||
}
|
||||
if (_wfdMap != 0)
|
||||
{
|
||||
NSFreeMapTable(_wfdMap);
|
||||
}
|
||||
#if HAVE_POLL
|
||||
if (pollfds != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue