code:
1 2 3 4 | local tile = display.newImage("my_image.png") print(tile) <---- return something like "table: 0x475c70" tile.parent:remove(tile) print(tile) <-----same as above "table: 0x475c70" |
tile = nil
That should set it up for garbage collection, I think...
set object to nil or null
I have try it before, because it works for Flash Lite/ Flash , but not Corona. :(
It will got runtime error message in Corona terminal.
once you set it to nil, don't reference it anymore.
meaning, don't do
print(tile) <-----
C
Thanks