free correct object in Context::dispose

This commit is contained in:
Joel Dice 2009-07-28 17:20:23 -06:00
parent 8c18f27e89
commit 1b8777aa6b

View File

@ -88,7 +88,7 @@ class Context {
while (stack) {
Stack* dead = stack;
stack = dead->next;
thread->m->heap->free(stack, sizeof(Stack));
thread->m->heap->free(dead, sizeof(Stack));
}
}