hey,

with many structs and malloc'ated memory I need a possibility to free and clean up the memory before the engine closes.

Yes I know about sys_exit but what if the user shut down the engine via ESC key?
What is the best practice in that case?


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)