Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds

This commit is contained in:
Gabriel Jacobo 2013-02-22 10:44:44 -03:00
parent 5c01139fce
commit 4c20da2bdc

View File

@ -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 */