mirror of
https://github.com/yawut/SDL.git
synced 2026-06-11 19:22:14 -05:00
X11: Fixed memory leak when initializing multiple screens.
This commit is contained in:
parent
632b32ec5a
commit
f711bea9cd
|
|
@ -491,11 +491,11 @@ X11_InitModes_XRandR(_THIS)
|
|||
display.driverdata = displaydata;
|
||||
SDL_AddVideoDisplay(&display);
|
||||
}
|
||||
|
||||
X11_XRRFreeScreenResources(res);
|
||||
}
|
||||
}
|
||||
|
||||
X11_XRRFreeScreenResources(res);
|
||||
|
||||
if (_this->num_displays == 0) {
|
||||
return SDL_SetError("No available displays");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user