mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 02:05:07 -05:00
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user