uses SDL;
procedure SDL_QuitSubSystem( flags : UInt32 );
SDL_QuitSubSystem allows you to shut down a subsystem that has been previously initialized by SDL_Init or SDL_InitSubSystem. The flags tells SDL_QuitSubSystem which subsystems to shut down, it uses the same values that are passed to SDL_Init.
SDL_Quit, SDL_Init, SDL_InitSubSystem