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();
|
lua_State* L = lua.getState();
|
||||||
LuaBindings::set_session (L, _session);
|
LuaBindings::set_session (L, _session);
|
||||||
lua.do_command ("collectgarbage();");
|
lua.collect_garbage ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user