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
authorBob Pendleton <bob@pendleton.com>
Tue, 04 Mar 2008 23:09:28 +0000
changeset 2321 c5feceb0395e
parent 2320 166400aa33d7
child 2322 c25d45b7add3
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.
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;