Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
authorGabriel Jacobo <gabomdq@gmail.com>
Fri, 22 Feb 2013 10:44:44 -0300
changeset 6906 85ac6fbdf171
parent 6905 4882bcc19578
child 6907 a12c142a37cc
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
src/video/x11/SDL_x11modes.c
--- a/src/video/x11/SDL_x11modes.c	Wed Feb 20 14:49:30 2013 -0500
+++ b/src/video/x11/SDL_x11modes.c	Fri Feb 22 10:44:44 2013 -0300
@@ -860,6 +860,7 @@
         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 */