From 31c62495f1de6e9ba41e1f6d7fa263eeb849129b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 10 Sep 2008 13:11:09 +0800 Subject: Drop a reference to user mode after create User mode has no customer when create until assigned to some output. --- randr/rrmode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'randr') 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; } -- cgit v1.2.3