Minor tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6874 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-07-04 20:25:50 +00:00
parent 9cd2545b1c
commit 0896bc645a
2 changed files with 26 additions and 24 deletions

View file

@ -811,7 +811,7 @@ static NSLock *global_proxies_gate;
M_UNLOCK(_refGate);
return;
}
_isValid = NO;
M_LOCK(connection_table_gate);
NSHashRemove(connection_table, self);
[timer invalidate];
@ -865,16 +865,6 @@ static NSLock *global_proxies_gate;
* might otherwise de deallocated.
*/
M_LOCK(_proxiesGate);
if (_remoteProxies != 0)
{
NSFreeMapTable(_remoteProxies);
_remoteProxies = 0;
}
if (_localObjects != 0)
{
NSFreeMapTable(_localObjects);
_localObjects = 0;
}
if (_localTargets != 0)
{
NSArray *targets;
@ -893,6 +883,16 @@ static NSLock *global_proxies_gate;
NSFreeMapTable(_localTargets);
_localTargets = 0;
}
if (_remoteProxies != 0)
{
NSFreeMapTable(_remoteProxies);
_remoteProxies = 0;
}
if (_localObjects != 0)
{
NSFreeMapTable(_localObjects);
_localObjects = 0;
}
M_UNLOCK(_proxiesGate);
RELEASE(self);