mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Remove redundant collectgarbage() calls from scripts
Since 8112d6472e garbage is automatically collected
after running a Lua GUI script.
This commit is contained in:
parent
f921b4790f
commit
925be49b2d
19 changed files with 2 additions and 50 deletions
|
|
@ -44,8 +44,6 @@ function factory () return function ()
|
|||
-- bail out if there are no parameters
|
||||
if not have_entries then
|
||||
LuaDialog.Message ("CC to Plugin Automation", "No Plugins found", LuaDialog.MessageType.Info, LuaDialog.ButtonType.Close):run ()
|
||||
targets = nil
|
||||
collectgarbage ()
|
||||
return
|
||||
end
|
||||
|
||||
|
|
@ -117,7 +115,6 @@ function factory () return function ()
|
|||
Session:abort_reversible_command ()
|
||||
LuaDialog.Message ("CC to Plugin Automation", "No data was converted. Was a MIDI-region with CC-automation selected? ", LuaDialog.MessageType.Info, LuaDialog.ButtonType.Close):run ()
|
||||
end
|
||||
collectgarbage ()
|
||||
end end
|
||||
|
||||
function icon (params) return function (ctx, width, height, fg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue