0.003 Small enough not to worry about?

I’ve detected a memory leak in my game. When the user pauses it and goes to the main menu, about 0.003 MB of system memory isn’t cleaned up. Is that enough to cause a problem, or should I overlook it?

Caleb [import]uid: 147322 topic_id: 35125 reply_id: 335125[/import]

Ideally you want to remove all memory leaks, but that sounds pretty minor. It all depends if it is in a loop and how often it re-occurs. Keep in mind almost every app has a memory leak of some sort. [import]uid: 160288 topic_id: 35125 reply_id: 139639[/import]

Well, it happens every time the player pauses and returns to the title screen, or finishes a level. It seems to occur when returning to the title screen - maybe it’s a table or something that I’m not nil-ing out.

Do all local variables nil out at the end of a function? Local variables like tables and numbers - not display objects. It might be something global that I’m creating and that’s not being nil-ed out at the end of the .new function for scene changing.

If I can’t find the problem, I think I’ll just overlook it. I don’t believe it will make much of a problem.

Caleb [import]uid: 147322 topic_id: 35125 reply_id: 139644[/import]

Ideally you want to remove all memory leaks, but that sounds pretty minor. It all depends if it is in a loop and how often it re-occurs. Keep in mind almost every app has a memory leak of some sort. [import]uid: 160288 topic_id: 35125 reply_id: 139639[/import]

Well, it happens every time the player pauses and returns to the title screen, or finishes a level. It seems to occur when returning to the title screen - maybe it’s a table or something that I’m not nil-ing out.

Do all local variables nil out at the end of a function? Local variables like tables and numbers - not display objects. It might be something global that I’m creating and that’s not being nil-ed out at the end of the .new function for scene changing.

If I can’t find the problem, I think I’ll just overlook it. I don’t believe it will make much of a problem.

Caleb [import]uid: 147322 topic_id: 35125 reply_id: 139644[/import]