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
|
@ -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 New Issue