comparison 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
comparison
equal deleted inserted replaced
2323:4ac07ae446d3 2324:3202e4826c57
2188 if (display->windows) { 2188 if (display->windows) {
2189 SDL_free(display->windows); 2189 SDL_free(display->windows);
2190 display->windows = NULL; 2190 display->windows = NULL;
2191 } 2191 }
2192 display->num_windows = 0; 2192 display->num_windows = 0;
2193 if (display->render_drivers) {
2194 SDL_free(display->render_drivers);
2195 display->render_drivers = NULL;
2196 }
2197 display->num_render_drivers = 0;
2193 } 2198 }
2194 _this->VideoQuit(_this); 2199 _this->VideoQuit(_this);
2195 2200
2196 for (i = _this->num_displays; i--;) { 2201 for (i = _this->num_displays; i--;) {
2197 SDL_VideoDisplay *display = &_this->displays[i]; 2202 SDL_VideoDisplay *display = &_this->displays[i];