comparison xlovesys.cc @ 51:cbb301016a4e

* oops... finishing what was started and not said with the other patch: fixing memory leaks
author thib
date Fri, 17 Apr 2009 18:40:39 +0000
parents 4c832144b3f2
children 15a18fbe6f21
comparison
equal deleted inserted replaced
50:35ce1a30f3f9 51:cbb301016a4e
132 132
133 if(SDL_Init(SDL_INIT_VIDEO)) { 133 if(SDL_Init(SDL_INIT_VIDEO)) {
134 printf("Unable to init SDL: %s\n", SDL_GetError()); 134 printf("Unable to init SDL: %s\n", SDL_GetError());
135 return 1; 135 return 1;
136 } 136 }
137 atexit(SDL_Quit);
138 137
139 config.GetParam("#SCREENSIZE_MOD", 1, &screenmode); 138 config.GetParam("#SCREENSIZE_MOD", 1, &screenmode);
140 if (screenmode == 1) { 139 if (screenmode == 1) {
141 SDL_SetVideoMode(800, 600, 0, videoOptions); 140 SDL_SetVideoMode(800, 600, 0, videoOptions);
142 } else { 141 } else {