mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-06 14:00:35 +01:00
Bug #12531: RRModesForScreen can fail to allocate.
This commit is contained in:
parent
fac7e7e4e1
commit
a46c30c3be
1 changed files with 2 additions and 0 deletions
|
|
@ -165,6 +165,8 @@ RRModesForScreen (ScreenPtr pScreen, int *num_ret)
|
|||
int num_screen_modes = 0;
|
||||
|
||||
screen_modes = xalloc ((num_modes ? num_modes : 1) * sizeof (RRModePtr));
|
||||
if (!screen_modes)
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
* Add modes from all outputs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue