Fix minor thread-safety issue

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25997 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-01-23 16:45:04 +00:00
parent e98cee3eb7
commit 83829d5c01
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-01-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSHost.m: Fix minor thread safety issue ... could get
release host if another thread clears cache at same time as lookup.
2008-01-21 Fred Kiefer <FredKiefer@gmx.de>
* Resources/Languages/Spanish: Quoting corrections by Matias

View file

@ -373,6 +373,10 @@ myHostName()
}
}
}
else
{
AUTORELEASE(RETAIN(host));
}
[_hostCacheLock unlock];
if (tryByAddress == YES)
{