diff options
author | Stefan Becker <stefanb2@users.sourceforge.net> | 2009-05-22 13:34:09 +0200 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-05-22 13:36:57 +0200 |
commit | 0e7499fb395ddfe95395bcb70836893dc4c00535 (patch) | |
tree | d0cfdf536745eb37336add5b27a3c156bb28ed88 | |
parent | 94d058b35f075cec2d6e8b6e37ee1a94086ea3f8 (diff) | |
download | libtdevnc-0e7499fb395ddfe95395bcb70836893dc4c00535.tar.gz libtdevnc-0e7499fb395ddfe95395bcb70836893dc4c00535.zip |
Add close() to rfbClientCleanup()
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r-- | libvncclient/vncviewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 498f14a..752f0a7 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -316,6 +316,8 @@ void rfbClientCleanup(rfbClient* client) { #endif #endif + if (client->sock > 0) + close(client->sock); free(client->desktopName); free(client->serverHost); free(client); |