diff --git a/include/pocketpy/vm.h b/include/pocketpy/vm.h index 5660567a..9c3691db 100644 --- a/include/pocketpy/vm.h +++ b/include/pocketpy/vm.h @@ -416,7 +416,7 @@ public: ImportContext _import_context; PyObject* py_import(Str path, bool throw_err=true); - ~VM(); + virtual ~VM(); #if PK_DEBUG_CEVAL_STEP void _log_s_data(const char* title = nullptr);