mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 13:30:06 +01:00
Release randr mode references properly.
This commit is contained in:
parent
893d5ddda9
commit
9fd9c35af0
1 changed files with 11 additions and 0 deletions
|
|
@ -225,7 +225,12 @@ dmxRRUpdateCrtc (ScreenPtr pScreen,
|
|||
XLIB_EPILOGUE (dmxScreen);
|
||||
|
||||
if (!gamma)
|
||||
{
|
||||
if (mode)
|
||||
RRModeDestroy (mode);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
RRCrtcGammaSet (crtc, gamma->red, gamma->green, gamma->blue);
|
||||
|
||||
|
|
@ -236,6 +241,9 @@ dmxRRUpdateCrtc (ScreenPtr pScreen,
|
|||
if (outputs)
|
||||
xfree (outputs);
|
||||
|
||||
if (mode)
|
||||
RRModeDestroy (mode);
|
||||
|
||||
XRRFreeCrtcInfo (c);
|
||||
|
||||
return TRUE;
|
||||
|
|
@ -634,6 +642,9 @@ dmxRRGetInfo (ScreenPtr pScreen,
|
|||
dmxScreen->rootX, dmxScreen->rootY,
|
||||
RR_Rotate_0, 1,
|
||||
&pScrPriv->outputs[baseOutput]);
|
||||
|
||||
if (mode)
|
||||
RRModeDestroy (mode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue