mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 15:10:02 +01:00
Don't bump the refcnt if the new mode is NULL.
This commit is contained in:
parent
4056e6e79a
commit
cde8806c29
1 changed files with 2 additions and 1 deletions
|
|
@ -174,7 +174,8 @@ RRCrtcNotify (RRCrtcPtr crtc,
|
|||
if (crtc->mode)
|
||||
RRModeDestroy (crtc->mode);
|
||||
crtc->mode = mode;
|
||||
mode->refcnt++;
|
||||
if (mode != NULL)
|
||||
mode->refcnt++;
|
||||
RRCrtcChanged (crtc, TRUE);
|
||||
}
|
||||
if (x != crtc->x)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue