[SDL] SDL_Quit segfaulting

Ti Leggett leggett at eecs.tulane.edu
Mon Aug 20 18:27:01 PDT 2001


On 2001.08.20 21:52 Ryan C. Gordon wrote:
> 
> >  [...]
> >     surface = SDL_SetVideoMode( 320, 200, 24, videoFlags );
> >     SDL_FreeSurface( surface );
> >  [...]
> >     SDL_Quit( );
> >  [...]
> 
> 
> Don't call SDL_FreeSurface() on the value returned from
> SDL_SetVideoMode(). SDL_Quit() will clean this up for you.
> 

I removed the FreeSurface on the surface set by SetVideoMode and it still seg
faults.

-- 
Ti Leggett
leggett at eecs.tulane.edu




More information about the SDL mailing list