[SDL] Memory Leak

Ryan C. Gordon icculus at icculus.org
Wed Apr 18 20:21:28 PDT 2007


> [W] MLK: Memory leak of 66 bytes from 4 blocks allocated in callthreadstartex [MSVCR80.dll]

Don't use SDL_KillThread. The thread doesn't exit cleanly, so it doesn't 
have a chance to clean up resources it allocated.

Better to set a variable that the thread checks and then exits on its 
own when asked to.

--ryan.




More information about the SDL mailing list