mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
e26157d901
commit
2c27acbf66
2 changed files with 7 additions and 0 deletions
|
@ -1278,6 +1278,7 @@ GSPrivateCheckTasks()
|
|||
|
||||
[tasksLock lock];
|
||||
t = (NSTask*)NSMapGet(activeTasks, (void*)(intptr_t)result);
|
||||
AUTORELEASE(RETAIN(t));
|
||||
[tasksLock unlock];
|
||||
if (t != nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue