wipe thread state on destroy to prevent dangling pointer use
parent
9c2d375471
commit
7158a6979b
|
@ -274,6 +274,7 @@ LIBCUBESCRIPT_EXPORT void state::destroy() {
|
|||
auto *sp = p_tstate->istate;
|
||||
sp->destroy(p_tstate);
|
||||
sp->destroy(sp);
|
||||
p_tstate = nullptr;
|
||||
}
|
||||
|
||||
state::state(internal_state *s) {
|
||||
|
|
Loading…
Reference in New Issue