vm/contexts.cpp: We are only deleting half the contexts because we increment the iter twice per loop! Fixes #1534. Thanks clang!
parent
44b9b26baa
commit
67eb64cf00
|
@ -98,7 +98,6 @@ void factor_vm::delete_contexts() {
|
||||||
FACTOR_ASSERT(!ctx);
|
FACTOR_ASSERT(!ctx);
|
||||||
FACTOR_FOR_EACH(unused_contexts) {
|
FACTOR_FOR_EACH(unused_contexts) {
|
||||||
delete *iter;
|
delete *iter;
|
||||||
iter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue