13
0

Drop references held by any GUI Lua script after execution

This commit is contained in:
Robin Gareus 2020-01-13 20:24:04 +01:00
parent fa2c935581
commit 8112d6472e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 1 deletions

View File

@ -1432,7 +1432,7 @@ LuaInstance::session_going_away ()
lua_State* L = lua.getState(); lua_State* L = lua.getState();
LuaBindings::set_session (L, _session); LuaBindings::set_session (L, _session);
lua.do_command ("collectgarbage();"); lua.collect_garbage ();
} }
void void

View File

@ -329,6 +329,7 @@ LuaWindow::run_script ()
append_text (string_compose (_("C++ Exception: %1"), "...")); append_text (string_compose (_("C++ Exception: %1"), "..."));
} }
} }
lua->collect_garbage ();
} }
void void