Memory issue with Lime

When I load several level with different tiles set in Lime. The memory of the application keep increasing. I would like to know if anyone found an answer to this.

For example before entering the map my memory is around 1 meg but after exiting the map i’m stuck with 16 meg even after calling map:destroy() and setting the map to nil and lime to nil.

thanks for help [import]uid: 64835 topic_id: 18170 reply_id: 318170[/import]

Ignore This I’ve fixed it by adding:
function TileSet:destroy()

self.spriteSheet:dispose()

end

Thanks :slight_smile: [import]uid: 64835 topic_id: 18170 reply_id: 69608[/import]

Sometimes calling dispose on a spritesheet causes issues, particularly when using physics it seems, just a warning :slight_smile: [import]uid: 5833 topic_id: 18170 reply_id: 69613[/import]