Memory leaks – eventlisteners and new sounds.
Dear all,
I have written up a media player code, which does what it is supposed to do, but the System.totalMemory steadily increases with time.
My code essentially consists of nested calls using EvenListeners that trigger initiation of new sounds.
I call up mp3 files that load and start play and on EventCOMPLETE load the next file
Example of code snippet:
**
What parts of this kind of code keep adding to total system memory?
And how can I best stop that leak?
Please advice,
Jaxz