Page 1 of 1

How do I close the game properly? Freeing Allocated Memory

PostPosted: Mon Oct 10, 2011 10:47 pm
by EvanBlack
Where do I put the function call that frees allocated memory when the game is closing?

Re: How do I close the game properly? Freeing Allocated Memo

PostPosted: Tue Oct 11, 2011 1:11 am
by skydereign
You would need to put the free functions where you call the ExitGame. So, if you use escape, disable the exit on escape (in the game properties), and add an event to the view. Call the free functions, then the ExitGame.