If I call removeSelf on an object, do I need to remove its event listeners, or is that only necessary with ones that are registered with the Runtime object? [import]uid: 92842 topic_id: 16084 reply_id: 316084[/import]
Touch listeners and things that are NOT attached to Runtime will be removed when you call object:removeSelf(); however, for the sake of efficiency I always tend to remove them manually (whenever it’s easy to do so).
And as you said, listeners that are added to Runtime always need to be removed manually.
Here’s a tutorial you might find useful:
http://blog.anscamobile.com/2011/08/corona-sdk-memory-leak-prevention-101/ [import]uid: 52430 topic_id: 16084 reply_id: 59803[/import]