git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-03-20 12:13:03 +00:00
parent a7641b814c
commit e1ade6ed23
2 changed files with 22 additions and 10 deletions

View file

@ -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);

View file

@ -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)
{