How to clean a class properly (POO tips required! Thank You!)

Does anyone know how to clean correctly a class when not longer needed?

In example, We’ve a POO class of a soldier, the soldier has a body (display.newImage), has a function which plays a sound on walking (audio.loadSound), and a Runtime:addEventListener to monitoring other functions.

Actually we’ve a function soldier:kill() which is cancelling all listeners, transitions, display.remove() on images and audio.dispose() with the sounds.

I’m wondering if everything of this is needed or maybe cancelling Runtime Listeners and something more will do the work…

Thank you in advance! [import]uid: 131209 topic_id: 25707 reply_id: 325707[/import]