summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Pendleton <bob@pendleton.com>2008-03-04 23:09:28 +0000
committerBob Pendleton <bob@pendleton.com>2008-03-04 23:09:28 +0000
commit7e6d899b9224bf6a78e27f41901188b1d58fb62a (patch)
treea9fd5d1cc250a9ecac94a9bfff0e97ea53ffbde8
parent177e24a5b3fb84c7bee4ec9e0271f9ac8168b2ab (diff)
downloadsdl-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.c2
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;