diff options
author | Bob Pendleton <bob@pendleton.com> | 2008-03-04 23:09:28 +0000 |
---|---|---|
committer | Bob Pendleton <bob@pendleton.com> | 2008-03-04 23:09:28 +0000 |
commit | 7e6d899b9224bf6a78e27f41901188b1d58fb62a (patch) | |
tree | a9fd5d1cc250a9ecac94a9bfff0e97ea53ffbde8 | |
parent | 177e24a5b3fb84c7bee4ec9e0271f9ac8168b2ab (diff) | |
download | sdl-7e6d899b9224bf6a78e27f41901188b1d58fb62a.tar.gz |
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.
-rw-r--r-- | src/video/x11/SDL_x11window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index 02ed06129..b2bc577ab 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -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; |