Commit 509ae051 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: check pointer before usage

The code also worked with pWindow being NULL but it did some unnecessary stuff.
parent eb51bcb6
......@@ -576,7 +576,7 @@ void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
}
}
if (pWindow == lastClientWindowPtr)
if (pWindow && pWindow == lastClientWindowPtr)
{
lastClientWindowPtr = NULL;
SetClientSelectionStage(None);
......
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