From c02ab70efa7b9927b8459495a5ee11f50b17667c Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 3 May 2019 19:18:20 +0200 Subject: NXdispatch.c: Simplify InitSelections() by calling upstream version from dispatch.c --- nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'nx-X11/programs/Xserver/hw/nxagent') diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c index 4a9ae73ae..9e365f372 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c @@ -203,12 +203,9 @@ extern int nxagentMaxSelections; extern int nxOpenFont(ClientPtr, XID, Mask, unsigned, char*); void -InitSelections() +InitSelections(void) { - if (CurrentSelections) - free(CurrentSelections); - CurrentSelections = (Selection *)NULL; - NumCurrentSelections = 0; + xorg_InitSelections(); #ifdef NXAGENT_CLIPBOARD { @@ -232,7 +229,6 @@ InitSelections() CurrentSelections[nxagentClipboardSelection].client = NullClient; } #endif - } #define MAJOROP ((xReq *)client->requestBuffer)->reqType -- cgit v1.2.3