Drop a reference to user mode after create

User mode has no customer when create until assigned
to some output.
This commit is contained in:
Keith Packard 2008-09-10 13:11:09 +08:00 committed by Zhenyu Wang
parent 079625570d
commit 31c62495f1

View File

@ -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;
}