mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 04:20:23 +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->ptr = ptr;
|
||||||
p->size = size;
|
p->size = size;
|
||||||
p->next = headslot;
|
|
||||||
|
|
||||||
ScopedLock lock(*mutex);
|
ScopedLock lock(*mutex);
|
||||||
|
p->next = headslot;
|
||||||
headslot = p;
|
headslot = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user