Corona tell us that is you use Composer library , it will automatically handle memory & objects , Every time you design a scene , we keep each of the object in the scene-group [scene.view / self.view].
Thus this objects are bind with scene group , so as we remove the scene in hide-phase of that scene , all the object with it should also be get clean from memory as they from display.
I have observed that the objects bind with scene group gets clear only from display but not form memory, we have to manually clean it via using removeSelf().
Corona should have a look at composer ,We have to remove each of your scene object Manually in Hide() phase & set that group reference to nil.
I am using the following code block to refer the memory leakage in you app/game.
[lua]
local function printMemUsage()
local memUsed = (collectgarbage(“count”))/1000
local texUsed = system.getInfo(“textureMemoryUsed”)/1000000
print("\n---------MEMORY USAGE INFORMATION---------")
print(“System Memory Used:”, string.format("%.03f", memUsed), “Mb”)
print(“Texture Memory Used:”, string.format("%.03f", texUsed), “Mb”)
print("------------------------------------------\n")
return true
end
Runtime:addEventListener(“enterFrame”, function() collectgarbage(“step”) end)
timer.performWithDelay(2000, printMemUsage, -1)
[/lua]
Assif