Fix typos in variable name that caused memory leaks in OvaleFuture.
Johnny C. Lam [07-12-13 - 07:44]
Fix typos in variable name that caused memory leaks in OvaleFuture.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@960 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleFuture.lua b/OvaleFuture.lua
index f36971f..8878b49 100644
--- a/OvaleFuture.lua
+++ b/OvaleFuture.lua
@@ -222,7 +222,7 @@ end
function OvaleFuture:PLAYER_ENTERING_WORLD(event)
-- Empty out self_lastSpellcast.
for guid, spellTable in pairs(self_lastSpellcast) do
- for spellId, spellCast in pairs(spellTable) do
+ for spellId, spellcast in pairs(spellTable) do
spellTable[spellId] = nil
self_pool:Release(spellcast)
end
@@ -234,7 +234,7 @@ function OvaleFuture:Ovale_InactiveUnit(event, guid)
-- Remove spellcasts for inactive units.
local spellTable = self_lastSpellcast[guid]
if spellTable then
- for spellId, spellCast in pairs(spellTable) do
+ for spellId, spellcast in pairs(spellTable) do
spellTable[spellId] = nil
self_pool:Release(spellcast)
end