fix crash on quit where interfaces are destroyed instead of impls

master
Daniel Kolesa 2021-03-21 06:20:56 +01:00
parent a591384afd
commit 45bf6ed7ef
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ LIBCUBESCRIPT_EXPORT void cs_state::destroy() {
a->get_value().force_none();
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(static_cast<cs_charbuf *>(p_errbuf));