Debugging recycling
Scott Sibley [08-11-10 - 18:01]
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 5db9995..b8004ee 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -262,7 +262,7 @@ if classifications[class] then
lvl = lvl .. classifications[class]
end
---self.del(classifications)
+self.del(classifications)
return lvl
]],
@@ -518,7 +518,7 @@ function mod:CreateLines()
StarTip.del(cc)
end
- if v.marquee and v.lastLine ~= lineNum then
+ if v.marquee and v.lastLine ~= lineNum and v.enabled then
GameTooltip:AddLine(' ', 1, 1, 1)
lineNum = lineNum + 1
v.string = v.left
diff --git a/StarTip.lua b/StarTip.lua
index 52f28ae..4884a8f 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -215,7 +215,7 @@ do
if (t and type(t) ~= table) or t == nil then break end
for k, v in pairs(t) do
if type(k) == "table" then
- StarTip:del(k)
+ StarTip.del(k)
end
pool[k] = true
end
@@ -225,7 +225,9 @@ do
t[k] = nil
end
t.__starref__ = nil
- pool[t] = true
+ pool[t] = true
+ t = nil
+
end
end