From 589d7a68a8049094a9ae55f6e529e526ea3067a1 Mon Sep 17 00:00:00 2001 From: Reuh Date: Wed, 19 Aug 2015 17:59:13 +0200 Subject: [PATCH] Unload Lua data on exit --- source/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/main.c b/source/main.c index cadec6d..194ed45 100644 --- a/source/main.c +++ b/source/main.c @@ -48,6 +48,9 @@ int main() { // Do the actual thing if (luaL_dofile(L, BOOT_FILE)) error(luaL_checkstring(L, -1)); + // Unload Lua + lua_close(L); + // Unload current font unload_font_lib();