Commit f4547610 authored by Keith Packard's avatar Keith Packard Committed by Ulrich Sibiller

Backport: Drop a reference to user mode after create

User mode has no customer when create until assigned to some output.
parent 8fd0b52f
...@@ -342,7 +342,8 @@ ProcRRCreateMode (ClientPtr client) ...@@ -342,7 +342,8 @@ ProcRRCreateMode (ClientPtr client)
swapl(&rep.mode, n); swapl(&rep.mode, n);
} }
WriteToClient(client, sizeof(xRRCreateModeReply), (char *)&rep); WriteToClient(client, sizeof(xRRCreateModeReply), (char *)&rep);
/* Drop out reference to this mode */
RRModeDestroy (mode);
return client->noClientException; return client->noClientException;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment