mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-18 16:21:07 +00:00
Fix huge problems using "headslot" in multiple threads.
This commit is contained in:
parent
f86c306bab
commit
2be85b1ee5
@ -204,9 +204,9 @@ static void addslot(void *ptr, unsigned long size)
|
||||
|
||||
p->ptr = ptr;
|
||||
p->size = size;
|
||||
p->next = headslot;
|
||||
|
||||
ScopedLock lock(*mutex);
|
||||
p->next = headslot;
|
||||
headslot = p;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user