Drop references held by any GUI Lua script after execution
This commit is contained in:
parent
fa2c935581
commit
8112d6472e
@ -1432,7 +1432,7 @@ LuaInstance::session_going_away ()
|
||||
|
||||
lua_State* L = lua.getState();
|
||||
LuaBindings::set_session (L, _session);
|
||||
lua.do_command ("collectgarbage();");
|
||||
lua.collect_garbage ();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -329,6 +329,7 @@ LuaWindow::run_script ()
|
||||
append_text (string_compose (_("C++ Exception: %1"), "..."));
|
||||
}
|
||||
}
|
||||
lua->collect_garbage ();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user