summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-09-10 13:11:09 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-09-10 13:11:09 +0800
commit31c62495f1de6e9ba41e1f6d7fa263eeb849129b (patch)
tree0b5651378ccfaf4c8df8d4fb582e341e7ebd0ebf /randr
parent079625570d51e41569b73b2fd9237eb8f967f408 (diff)
Drop a reference to user mode after create
User mode has no customer when create until assigned to some output.
Diffstat (limited to 'randr')
-rw-r--r--randr/rrmode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/randr/rrmode.c b/randr/rrmode.c
index d5072084a..2fa440385 100644
--- a/randr/rrmode.c
+++ b/randr/rrmode.c
@@ -320,7 +320,8 @@ ProcRRCreateMode (ClientPtr client)
swapl(&rep.mode, n);
}
WriteToClient(client, sizeof(xRRCreateModeReply), (char *)&rep);
-
+ /* Drop out reference to this mode */
+ RRModeDestroy (mode);
return client->noClientException;
}