mirror of
https://github.com/yawut/SDL.git
synced 2026-07-27 21:47:57 -05:00
Fixes Bug 1726 - Memory leak in X11_GetDisplayBounds
This commit is contained in:
parent
5c01139fce
commit
4c20da2bdc
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user