[SOLVED] Do data structures get deleted when game ends?

V

VansiusProductions

Guest
hi guys
Do data structures automatically get destroyed when game ends? or do i have to manually destroy it?
 

Surgeon_

Symbian Curator
All memory (dynamic or not) gets released when you turn off the program (by using game_end() for example). This will not however happen when you call game_restart().
 
V

VansiusProductions

Guest
All memory (dynamic or not) gets released when you turn off the program (by using game_end() for example). This will not however happen when you call game_restart().
Thank you!
 
It's still good habit to destroy them yourself, just in case you change how something works in your project. Hunting down memory leaks is no fun!
 
Top