Remove redundant collectgarbage() calls from scripts

Since 8112d6472e garbage is automatically collected
after running a Lua GUI script.
This commit is contained in:
Robin Gareus 2020-03-10 23:31:20 +01:00
parent f921b4790f
commit 925be49b2d
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
19 changed files with 2 additions and 50 deletions

View file

@ -65,7 +65,6 @@ function factory (unused_params)
LuaDialog.Message("Add LFO automation to region", "No plugin parameters found.",
LuaDialog.MessageType.Info, LuaDialog.ButtonType.Close):run()
region, track, targets = nil, nil, nil
collectgarbage()
return
end
@ -85,7 +84,6 @@ function factory (unused_params)
-- Return if the user cancelled
if not rv then
region, track, targets = nil, nil, nil
collectgarbage()
return
end
@ -171,7 +169,6 @@ function factory (unused_params)
Session:commit_reversible_command(nil)
region, al, lut = nil, nil, nil
collectgarbage()
end
end