[SDL] Memory Leak

Ryan C. Gordon icculus at icculus.org
Fri Apr 27 01:45:10 PDT 2007


> PS: If we know that SDL_KillThread is having leaks then we can avoid 
> using it next releases.

SDL_KillThread() will definitely cause at least a small leak on some 
platforms. Never, never use it.

If SDL_OpenAudio() is leaking, though, it's either a bug or the audio 
device is never being closed: make sure you call SDL_Quit() before your 
program terminates to do so or you will definitely "leak" memory (but, 
being the end of the program, it's not really a leak, as the OS will 
free it anyhow.)

--ryan.




More information about the SDL mailing list