mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
lua fix lua_close on os.exit(0)
Change-Id: Ib225ecf9ea64c95e438c4114b23239c118ab19a2
This commit is contained in:
parent
1b41e6ec43
commit
951a614852
1 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,8 @@ static void lua_atexit(void)
|
||||||
lua_pop(Ls, 1); /* put exit string on top of stack */
|
lua_pop(Ls, 1); /* put exit string on top of stack */
|
||||||
plugin_start(NULL);
|
plugin_start(NULL);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
lua_close(Ls);
|
||||||
}
|
}
|
||||||
_exit(0); /* don't call exit handler */
|
_exit(0); /* don't call exit handler */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue