uses SDL;
procedure SDL_Quit ;
procedure SDL_Quit
SDL_Quit shuts down all SDL subsystems and frees the resources allocated to them. This should always be called before you exit.
try SDL_Init( SDL_INIT_VIDEO or SDL_INIT_AUDIO );....finally SDL_Quit;end;..
SDL_QuitSubsystem , SDL_Init