close lua at exit
This commit is contained in:
parent
e3c3906f24
commit
24e246ab0e
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -158,6 +158,8 @@ int main(int argc, char *argv[]) {
|
|||
Engine::instance()->setMode(ENGINE_MODE_NORMAL);
|
||||
Engine::instance()->mainLoop();
|
||||
|
||||
lua_close();
|
||||
|
||||
delete g_smush;
|
||||
delete g_timer;
|
||||
delete g_mixer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue