diff 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
line wrap: on
line diff
--- a/src/SDL_compat.c	Tue Mar 04 23:09:28 2008 +0000
+++ b/src/SDL_compat.c	Thu Mar 06 17:08:10 2008 +0000
@@ -397,8 +397,8 @@
     }
     if (SDL_VideoWindow) {
         SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y);
+        SDL_DestroyWindow(SDL_VideoWindow);
     }
-    SDL_DestroyWindow(SDL_VideoWindow);
 
     /* Set up the event filter */
     if (!SDL_GetEventFilter(NULL, NULL)) {