mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 18:25:16 -05:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user