From 2be85b1ee52827dbcef52283a67291b656cf6027 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 10 Oct 2010 16:47:50 -0300 Subject: [PATCH] Fix huge problems using "headslot" in multiple threads. --- src/gui/jmem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/jmem.cpp b/src/gui/jmem.cpp index cb412db5b..877d53f99 100644 --- a/src/gui/jmem.cpp +++ b/src/gui/jmem.cpp @@ -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; }