I am trying to make sure that I prevent memory leaks in my game. I am using storyboard and in every scene, I have all my display objects in a display group, which I remove and nil out when leaving the scene.
display.remove(screenGroup)
screenGroup = nil
Is this the right way to do it?
I have also read that you should do the same for timers,transitions, audio etc, But what about tables. I have lots and lots of tables in my code, some of them are quite big. Can I remove these too and free up some memory?
[import]uid: 208811 topic_id: 37597 reply_id: 67597[/import]