src/SDL_compat.c
changeset 2322 c25d45b7add3
parent 2303 d87417504c75
child 2328 91e601d9df8b
--- 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)) {