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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402738
This commit is contained in:
Bob Pendleton 2008-03-04 23:09:28 +00:00
parent b8101a644e
commit e6d4abc63e

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;