From b6b2373d02609144c486feddfa05acb025c68991 Mon Sep 17 00:00:00 2001 From: Gabriel Jacobo Date: Fri, 22 Feb 2013 10:44:44 -0300 Subject: [PATCH] Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds --- src/video/x11/SDL_x11modes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/x11/SDL_x11modes.c b/src/video/x11/SDL_x11modes.c index cad1d4ae7..e7822f057 100644 --- a/src/video/x11/SDL_x11modes.c +++ b/src/video/x11/SDL_x11modes.c @@ -860,6 +860,7 @@ X11_GetDisplayBounds(_THIS, SDL_VideoDisplay * sdl_display, SDL_Rect * rect) if (xinerama) { rect->x = xinerama[data->xinerama_screen].x_org; rect->y = xinerama[data->xinerama_screen].y_org; + XFree(xinerama); } } #endif /* SDL_VIDEO_DRIVER_X11_XINERAMA */