summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-09-03 09:41:00 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-09-03 09:41:00 +0800
commit7c5ca85a9e6d49ab572831b3e0c08bb4cafb395e (patch)
tree601ddd347086e5783fb3f63f74a95b10763ed31c /randr
parent4e1f9f51a9eea115ce2a073824e9c5cef4e2f364 (diff)
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.
Diffstat (limited to 'randr')
-rw-r--r--randr/rrmode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c
index d5072084a..212175f1d 100644
--- a/randr/rrmode.c
+++ b/randr/rrmode.c
@@ -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;
}