From 95efd075f20daa224c6ec4ffce236d775c552595 Mon Sep 17 00:00:00 2001 From: Bob Pendleton Date: Tue, 4 Mar 2008 23:09:28 +0000 Subject: [PATCH] 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. --- src/video/x11/SDL_x11window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;