Fix possible thread safety issue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-28 03:49:44 +00:00
parent e26157d901
commit 2c27acbf66
2 changed files with 7 additions and 0 deletions

View file

@ -1278,6 +1278,7 @@ GSPrivateCheckTasks()
[tasksLock lock];
t = (NSTask*)NSMapGet(activeTasks, (void*)(intptr_t)result);
AUTORELEASE(RETAIN(t));
[tasksLock unlock];
if (t != nil)
{