Fix global variable leak.
Johnny C. Lam [03-28-13 - 04:34]
Fix global variable leak.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@839 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleActionBar.lua b/OvaleActionBar.lua
index cca93c8..9cf2569 100644
--- a/OvaleActionBar.lua
+++ b/OvaleActionBar.lua
@@ -20,10 +20,10 @@ local API_GetActionText = GetActionText
local API_GetBindingKey = GetBindingKey
--key: spell name / value: action icon id
-self_actionSpell = {}
-self_actionMacro = {}
-self_actionItem = {}
-self_keybind = {}
+local self_actionSpell = {}
+local self_actionMacro = {}
+local self_actionItem = {}
+local self_keybind = {}
--</private-static-properties>
--<public-static-methods>
diff --git a/OvaleGUID.lua b/OvaleGUID.lua
index 022e413..53a17e7 100644
--- a/OvaleGUID.lua
+++ b/OvaleGUID.lua
@@ -21,10 +21,10 @@ local API_GetNumGroupMembers = GetNumGroupMembers
local API_UnitGUID = UnitGUID
local API_UnitName = UnitName
-self_unitId = {}
-self_guid = {}
-self_nameToGUID = {}
-self_nameToUnit = {}
+local self_unitId = {}
+local self_guid = {}
+local self_nameToGUID = {}
+local self_nameToUnit = {}
--</private-static-properties>
--<public-static-methods>