Common causes of memory leak

I am using the director class, and I have a memory leak on my level. Every time I go to the menu screen and the replay the level, the memory has increased by about 20.

I’m not sure where the leak is, so I was just wondering what the common causes of memory leak are, so I could re-check my code. Thanks [import]uid: 116264 topic_id: 25578 reply_id: 325578[/import]

Not disposing of things properly, often audio from what I have seen, so that’s what I would suggest checking out first :slight_smile: [import]uid: 52491 topic_id: 25578 reply_id: 103502[/import]

When you say disposing of things - I thought the director class disposed of things automatically when you changed scenes? And I dont have any audio [import]uid: 116264 topic_id: 25578 reply_id: 103573[/import]

For director specific info you would want to post in the director sub forum :slight_smile:

If you have no audio then my above post can be disregarded as it isn’t relevant to your project.

Peach :slight_smile: [import]uid: 52491 topic_id: 25578 reply_id: 103676[/import]