I encounter a memory leak that disappears when switching off textcandy.
My app uses director.
I do, in main :
Globals = {}
Globals.ParticleCandy = require("lib\_particle\_candy")
Globals.TextCandy = require("lib\_text\_candy");
In my scene :
local TC = Globals.TextCandy
For the cleanup :
-- TC
TC.DeleteTexts();
TC.CleanUp();
TC=nil;
All texts are put in a table this way :
mytable[i].text= TC.CreateText({...})
The table is cleaned this way :
[code]
local function cleanTable(t)
for i = #t, 1, -1 do
display.remove(t[i])
t[i]=nil
table.remove(t, i)
end
t = nil;
end
cleanTable(mytable)[/code]
Thx for any hints [import]uid: 9328 topic_id: 21770 reply_id: 321770[/import]