mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Don't bump the refcnt if the new mode is NULL.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user