# HG changeset patch # User Bob Pendleton # Date 1204672168 0 # Node ID c5feceb0395e876bec2a98a9865aae27e40f59fa # Parent 166400aa33d749356eb3d3f083a2780c17a11ecd SetupWindowData in SDL_X11window.c was realloc()ing the display window list and incrementing numwindows even though those are being updated in functions that call this function. The result is that it is possible to get the same window added to the list twice. diff -r 166400aa33d7 -r c5feceb0395e src/video/x11/SDL_x11window.c --- a/src/video/x11/SDL_x11window.c Sat Mar 01 20:34:36 2008 +0000 +++ b/src/video/x11/SDL_x11window.c Tue Mar 04 23:09:28 2008 +0000 @@ -477,7 +477,7 @@ } int -X11_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) +X11_CreateWindowFrom(_THIS, SDL_Window *window, const void *data) { Window w = (Window) data;