Quantcast

Delete widgets on GameTooltip.OnHide so we can get rid of those timers till we need them again.

Scott Sibley [08-20-10 - 06:36]
Delete widgets on GameTooltip.OnHide so we can get rid of those timers till we need them again.
Filename
Modules/Text.lua
StarTip.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 58f74a5..71f65a2 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -583,10 +583,12 @@ end
 function mod:OnHide()
 	for i, v in ipairs(lines) do
 		if v.leftObj then
-			v.leftObj:Stop()
+			v.leftObj:Del()
+			v.leftObj = nil
 		end
 		if v.rightObj then
-			v.rightObj:Stop()
+			v.rightObj:Del()
+			v.rightObj = nil
 		end
 	end
 	self.timer:Stop()
diff --git a/StarTip.lua b/StarTip.lua
index 1eb9082..37a0015 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -183,9 +183,7 @@ do
 		local newtbl
 		if t then
 			pool[t] = nil
-			for k, v in pairs(t) do
-				t[k] = nil
-			end
+			table.wipe(t)
 			for i=1, select("#", ...) do
 				t[i] = select(i, ...)
 			end