I found I have a memory leak, and I have a question when using storyboard, please help.
For example, I have a storyboard and I create some display object in createScene
local savedObjs = {} function scene:createScene( event ) local group = self.view for i=1,10 do local obj = display.newImage(...) savedObjs[i] = obj group:insert(obj) end end function scene:exitScene(event) storyboard.purgeScene("... current scene...") end function scene:destroyScene(event) for i=1,10 do savedObjs[i] = nil end savedObjs = nil end
If I exit and enter this scene repeatedly, the memory grows.
I am trying to figure out where the memory leak is.