never free the screen surface, SDL doesn't allow that
authorMatthias Braun <matze@braunis.de>
Mon, 10 May 2004 15:02:26 +0000 (15:02 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 10 May 2004 15:02:26 +0000 (15:02 +0000)
SVN-Revision: 1075

src/setup.cpp

index d6318e7..4a9eacc 100644 (file)
@@ -640,11 +640,7 @@ void st_general_free(void)
 
 void st_video_setup(void)
 {
-  if(screen != NULL)
-    SDL_FreeSurface(screen);
-
   /* Init SDL Video: */
-
   if (SDL_Init(SDL_INIT_VIDEO) < 0)
     {
       fprintf(stderr,