UnitBuff usage in OnUpdate = memory leak in(my) addon

Hi I’ve been noticing since patch my addon has a leak that if I disable the calls that run the following

function mRadial:HasActiveBuff(buffName)
local buffName = buffName
for i = 1, 40 do
local name, _, scount = UnitBuff(“player”, i)
if name and name == buffName then
return true, scount
end
end
return false, 0
end

the memory issues seem to go away. The memory climbs and climbs as high as 100mb (addon shouldn’t be more than 6mb) and then dumbs back down again.
The scripts are throttled at .1 update intervals etc, but everytime I spend a couple of hrs trying to chase down where this is coming from, I full circle back to that loop.
Any ideas anyone?

This is a topic for UI and Macro

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.