[SDL] Importance of SDL_Quit()

Nikos Chantziaras realnc at arcor.de
Sat Jul 23 12:08:35 PDT 2011

On 07/23/2011 09:53 PM, ShiroAisu wrote:
> Hi
> Is SDL_Quit() important if called right before the program exits?? if
> so, why?
> Cant we let the OS just clean up and unload the things that we loaded?

You can do that.  SDL_Quit() is mostly useful for shutting down SDL 
without quitting the application.  For example, an application can have 
two sound engines, one SDL, the other FMOD, and can switch them at runtime.

It is, however, good style to explicitly free resources at program 

More information about the SDL mailing list