diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-08-05 21:25:01 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-08-05 21:25:01 -0500 |
commit | 951a614852118b41aa02f5df99ee0a75a677b7da (patch) | |
tree | 37550d493c7878ceb0fc3f0656edff659a979e64 | |
parent | 1b41e6ec438fa6b66d1d84fadd02b9554ddc2a9c (diff) | |
download | rockbox-951a614852118b41aa02f5df99ee0a75a677b7da.tar.gz rockbox-951a614852118b41aa02f5df99ee0a75a677b7da.zip |
lua fix lua_close on os.exit(0)
Change-Id: Ib225ecf9ea64c95e438c4114b23239c118ab19a2
-rw-r--r-- | apps/plugins/lua/rocklua.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index eb48fa2799..cb2b6eb161 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c | |||
@@ -178,6 +178,8 @@ static void lua_atexit(void) | |||
178 | lua_pop(Ls, 1); /* put exit string on top of stack */ | 178 | lua_pop(Ls, 1); /* put exit string on top of stack */ |
179 | plugin_start(NULL); | 179 | plugin_start(NULL); |
180 | } | 180 | } |
181 | else | ||
182 | lua_close(Ls); | ||
181 | } | 183 | } |
182 | _exit(0); /* don't call exit handler */ | 184 | _exit(0); /* don't call exit handler */ |
183 | } | 185 | } |