diff src/video/SDL_video.c @ 2324:3202e4826c57

more valgrind errors fixed. Plus I ran make indent which changed a few files.
author Bob Pendleton <bob@pendleton.com>
date Fri, 07 Mar 2008 17:20:37 +0000
parents c785543d1843
children 91e601d9df8b
line wrap: on
line diff
--- a/src/video/SDL_video.c	Thu Mar 06 23:07:02 2008 +0000
+++ b/src/video/SDL_video.c	Fri Mar 07 17:20:37 2008 +0000
@@ -2190,6 +2190,11 @@
             display->windows = NULL;
         }
         display->num_windows = 0;
+        if (display->render_drivers) {
+            SDL_free(display->render_drivers);
+            display->render_drivers = NULL;
+        }
+        display->num_render_drivers = 0;
     }
     _this->VideoQuit(_this);