Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
authorGabriel Jacobo
Fri, 22 Feb 2013 10:44:44 -0300
changeset 690685ac6fbdf171
parent 6905 4882bcc19578
child 6907 a12c142a37cc
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Wed Feb 20 14:49:30 2013 -0500
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Fri Feb 22 10:44:44 2013 -0300
     1.3 @@ -860,6 +860,7 @@
     1.4          if (xinerama) {
     1.5              rect->x = xinerama[data->xinerama_screen].x_org;
     1.6              rect->y = xinerama[data->xinerama_screen].y_org;
     1.7 +            XFree(xinerama);
     1.8          }
     1.9      }
    1.10  #endif /* SDL_VIDEO_DRIVER_X11_XINERAMA */