mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Drop references held by any GUI Lua script after execution
This commit is contained in:
parent
fa2c935581
commit
8112d6472e
2 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue