Director Class, Lime and Memory-Help!

In Director + Lime, I think is very important (to free the textureMemory) to destroy the tilesets of the map before changing the scene. I'm afraid that map:destroy() doesn't do it properly.

I've tried...:

1
2
3
4
5
6
7
8
function clean (event)
 
local tileset = map:getTileset("bars")-- name of my tileset
tileset:destroy()
 
map:destroy()
 
end

Sorry for the delayed response, the function is map:getTileSet( name ), note the capitalisation.

views:1232 update:2011/10/13 16:30:09
corona forums © 2003-2011