Commit e6d4abc6 authored by Bob Pendleton's avatar Bob Pendleton

SetupWindowData in SDL_X11window.c was realloc()ing the display window list...

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
parent b8101a64
...@@ -477,7 +477,7 @@ X11_CreateWindow(_THIS, SDL_Window * window) ...@@ -477,7 +477,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
} }
int int
X11_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) X11_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
{ {
Window w = (Window) data; Window w = (Window) data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment