summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-09-08 09:16:59 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-09-08 09:16:59 +0800
commit4e004c68283828660f2259a4a4120a84667dcafa (patch)
treeeaf3b78b62ebd670e65831eaff1e4c146bb2b1e7
parent40a9482f8c5b3eac86c221ccce78510e850f4d2b (diff)
Revert "randr: fix user mode create initial reference count"
-rw-r--r--randr/rrmode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c
index 212175f1d..d5072084a 100644
--- a/randr/rrmode.c
+++ b/randr/rrmode.c
@@ -85,6 +85,11 @@ RRModeCreate (xRRModeInfo *modeInfo,
return NULL;
modes = newModes;
modes[num_modes++] = mode;
+
+ /*
+ * give the caller a reference to this mode
+ */
+ ++mode->refcnt;
return mode;
}