mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
randr: fix user mode create initial reference count
Don't need extra reference count adding when creating user mode. This fixes user mode destroy, otherwise we get BadAccess error.
This commit is contained in:
parent
4e1f9f51a9
commit
7c5ca85a9e
1 changed files with 0 additions and 5 deletions
|
|
@ -85,11 +85,6 @@ RRModeCreate (xRRModeInfo *modeInfo,
|
|||
return NULL;
|
||||
modes = newModes;
|
||||
modes[num_modes++] = mode;
|
||||
|
||||
/*
|
||||
* give the caller a reference to this mode
|
||||
*/
|
||||
++mode->refcnt;
|
||||
return mode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue