[SDL] ot - memory leaks

Sam Lantinga slouken at devolution.com
Thu Aug 2 09:49:56 PDT 2007


> i compiled my code on linux and ran it through valgrind to discover 
> just how bas
> it was, i did notice some things that looked like it was sdl

FYI, as far as I know there are no memory leaks in SDL, as long as you
free all your surfaces and shut down cleanly.  There are a few memory leaks
in glibc and X11 that show up as SDL since SDL uses them, but there isn't
anything we can do about that.

On the other hand, occasionally new leaks are introduced, so it never hurts
to take a look at them. :)

See ya,
	-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


More information about the SDL mailing list