diff options
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Reconnect.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c index cae0a397b..cafa219ec 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c @@ -610,12 +610,8 @@ Bool nxagentReconnectSession(void) nxagentXkbState.Initialized = 0; - if (nxagentOldKeyboard != NULL) - { - free(nxagentOldKeyboard); - - nxagentOldKeyboard = NULL; - } + free(nxagentOldKeyboard); + nxagentOldKeyboard = NULL; nxagentInitPointerMap(); @@ -739,12 +735,8 @@ nxagentReconnectError: nxagentDisconnectDisplay(); } - if (nxagentOldKeyboard != NULL) - { - free(nxagentOldKeyboard); - - nxagentOldKeyboard = NULL; - } + free(nxagentOldKeyboard); + nxagentOldKeyboard = NULL; return 0; } |