Fix huge problems using "headslot" in multiple threads.

This commit is contained in:
David Capello 2010-10-10 16:47:50 -03:00
parent f86c306bab
commit 2be85b1ee5

View File

@ -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;
}