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.
This commit is contained in:
Bob Pendleton
2008-03-04 23:09:28 +00:00
parent 1db7dfa3d2
commit 95efd075f2

View File

@@ -477,7 +477,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
}
int
X11_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
X11_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
{
Window w = (Window) data;