Don't bump the refcnt if the new mode is NULL.
This commit is contained in:
parent
4056e6e79a
commit
cde8806c29
|
@ -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…
Reference in New Issue