fix crash on quit where interfaces are destroyed instead of impls
parent
a591384afd
commit
45bf6ed7ef
|
@ -419,7 +419,7 @@ LIBCUBESCRIPT_EXPORT void cs_state::destroy() {
|
||||||
a->get_value().force_none();
|
a->get_value().force_none();
|
||||||
static_cast<cs_alias_impl *>(a)->clean_code();
|
static_cast<cs_alias_impl *>(a)->clean_code();
|
||||||
}
|
}
|
||||||
p_state->destroy(i);
|
p_state->destroy(i->p_impl);
|
||||||
}
|
}
|
||||||
p_state->destroy(p_state->strman);
|
p_state->destroy(p_state->strman);
|
||||||
p_state->destroy(static_cast<cs_charbuf *>(p_errbuf));
|
p_state->destroy(static_cast<cs_charbuf *>(p_errbuf));
|
||||||
|
|
Loading…
Reference in New Issue