diff --git a/wxLua/modules/luamodule/luamodule.cpp b/wxLua/modules/luamodule/luamodule.cpp index e6f82425..ddf403c3 100644 --- a/wxLua/modules/luamodule/luamodule.cpp +++ b/wxLua/modules/luamodule/luamodule.cpp @@ -212,6 +212,7 @@ extern "C" { static int reportShutdown(lua_State *L) { s_wxlState.CloseLuaState(true, false); + wxEntryCleanup(); return 0; } }