diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-09-08 09:16:59 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-09-08 09:16:59 +0800 |
commit | 4e004c68283828660f2259a4a4120a84667dcafa (patch) | |
tree | eaf3b78b62ebd670e65831eaff1e4c146bb2b1e7 /randr/rrmode.c | |
parent | 40a9482f8c5b3eac86c221ccce78510e850f4d2b (diff) |
Revert "randr: fix user mode create initial reference count"
This reverts commit 7c5ca85a9e6d49ab572831b3e0c08bb4cafb395e.
Diffstat (limited to 'randr/rrmode.c')
-rw-r--r-- | randr/rrmode.c | 5 |
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; } |