comparison src/SDL_compat.c @ 2322:c25d45b7add3

Fixing valgrind errors. One of the error was the result of an unitended recursive call to X11_GL_LoadLibrary which was also fixed.
author Bob Pendleton <bob@pendleton.com>
date Thu, 06 Mar 2008 17:08:10 +0000
parents d87417504c75
children 91e601d9df8b
comparison
equal deleted inserted replaced
2321:c5feceb0395e 2322:c25d45b7add3
395 SDL_GL_DeleteContext(SDL_VideoContext); 395 SDL_GL_DeleteContext(SDL_VideoContext);
396 SDL_VideoContext = NULL; 396 SDL_VideoContext = NULL;
397 } 397 }
398 if (SDL_VideoWindow) { 398 if (SDL_VideoWindow) {
399 SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y); 399 SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y);
400 } 400 SDL_DestroyWindow(SDL_VideoWindow);
401 SDL_DestroyWindow(SDL_VideoWindow); 401 }
402 402
403 /* Set up the event filter */ 403 /* Set up the event filter */
404 if (!SDL_GetEventFilter(NULL, NULL)) { 404 if (!SDL_GetEventFilter(NULL, NULL)) {
405 SDL_SetEventFilter(SDL_CompatEventFilter, NULL); 405 SDL_SetEventFilter(SDL_CompatEventFilter, NULL);
406 } 406 }