What does SDL_Quit do exactly?

high everyone,

i have a simple question. like many others, i have atexit(SDL_Quit) after i
initialize my screen.
but could someone please tell me which surfaces this free’s exactly? does it
free only my screen surface when i quit? or does it free ALL of my surfaces,
as in ANY SDL_Surface that ive created ? or should i do SDL_Free() to each
one of my surfaces at the end of the program? thanks for your help guys!!!_________________________________________________________________
Fast. Reliable. Get MSN 9 Dial-up - 3 months for the price of 1!
(Limited-time Offer) http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

Hi there

You know, SDL is free software. You can look at the code :wink:
But to answer your question: No, it doesn’t free the surfaces, you
created. All surfaces, except the screen surface, must be freed with
SDL_FreeSurface().

Regards,
Bernhard

Graveyard Filla wrote:> high everyone,

i have a simple question. like many others, i have atexit(SDL_Quit)
after i initialize my screen.
but could someone please tell me which surfaces this free’s exactly?
does it free only my screen surface when i quit? or does it free ALL of
my surfaces, as in ANY SDL_Surface that ive created ? or should i do
SDL_Free() to each one of my surfaces at the end of the program? thanks
for your help guys!!!


Fast. Reliable. Get MSN 9 Dial-up - 3 months for the price of 1!
(Limited-time Offer)
http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl