SDL_Quit question

Hello all,
I’m building a class at t the moment for basic SDL stuff. In my Init() member
function I’m currently calling atexit(SDL_Quit). I’m used to doing this from
all of my practice programs and now that I’m using SDL in a class I was
wondering if it’s better to call SDL_Quit() from the deconstructor instead?
THanks,
Chip

“Chip Collier” wrote in message
news:mailman.1013202903.19963.sdl at libsdl.org

Hello all,
I’m building a class at t the moment for basic SDL stuff. In my
Init() member
function I’m currently calling atexit(SDL_Quit). I’m used to doing
this from
all of my practice programs and now that I’m using SDL in a class I
was
wondering if it’s better to call SDL_Quit() from the deconstructor
instead?

Yes.–
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com