mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Fix: memory leak connected to lua 5.0 vaarargs
This commit is contained in:
@@ -443,7 +443,7 @@ function lib:AddListener(tab, method)
|
||||
error(format("Bad argument #3 to `AddListener'. Expected method, got %q.", type(tab[method])), 2)
|
||||
end
|
||||
func = function(...)
|
||||
return tab[method](tab, unpack(arg))
|
||||
return tab[method](tab, event, a, b, c, d, e)
|
||||
end
|
||||
elseif type(tab) == "function" then
|
||||
func = tab
|
||||
|
||||
@@ -53,8 +53,8 @@ local function Update(self, event, unit, currMana, maxMana)
|
||||
end
|
||||
end
|
||||
|
||||
local function Path(self, ...)
|
||||
return (self.DruidAltMana.Override or Update) (self, unpack(arg))
|
||||
local function Path(self, event, a, b, c, d, e)
|
||||
return (self.DruidAltMana.Override or Update) (self, event, a, b, c, d, e)
|
||||
end
|
||||
|
||||
local function ElementEnable(self)
|
||||
@@ -101,8 +101,8 @@ local function Visibility(self, event, unit)
|
||||
end
|
||||
end
|
||||
|
||||
local function VisibilityPath(self, ...)
|
||||
return (self.DruidAltMana.OverrideVisibility or Visibility) (self, unpack(arg))
|
||||
local function VisibilityPath(self, event, a, b, c, d, e)
|
||||
return (self.DruidAltMana.OverrideVisibility or Visibility) (self, event, a, b, c, d, e)
|
||||
end
|
||||
|
||||
local function ForceUpdate(element)
|
||||
|
||||
Reference in New Issue
Block a user