From 45bf6ed7ef8e7a5c68e642d4f4e8749e462c9515 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Sun, 21 Mar 2021 06:20:56 +0100 Subject: [PATCH] fix crash on quit where interfaces are destroyed instead of impls --- src/cubescript.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cubescript.cc b/src/cubescript.cc index 656d564..597b5a4 100644 --- a/src/cubescript.cc +++ b/src/cubescript.cc @@ -419,7 +419,7 @@ LIBCUBESCRIPT_EXPORT void cs_state::destroy() { a->get_value().force_none(); static_cast(a)->clean_code(); } - p_state->destroy(i); + p_state->destroy(i->p_impl); } p_state->destroy(p_state->strman); p_state->destroy(static_cast(p_errbuf));