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:
Zhenyu Wang 2008-09-03 09:41:00 +08:00
parent 4e1f9f51a9
commit 7c5ca85a9e

View File

@ -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;
}