From 4e004c68283828660f2259a4a4120a84667dcafa Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Mon, 8 Sep 2008 09:16:59 +0800 Subject: Revert "randr: fix user mode create initial reference count" This reverts commit 7c5ca85a9e6d49ab572831b3e0c08bb4cafb395e. --- randr/rrmode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'randr') 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; } -- cgit v1.2.3