fix disconnect bug in libvncserver
authorchristian <christian@christian-laptop.(none)>
Sun, 18 Jul 2010 17:42:12 +0000 (19:42 +0200)
committerchristian <christian@christian-laptop.(none)>
Sun, 18 Jul 2010 17:42:12 +0000 (19:42 +0200)
libvnc/libvncclient/vncviewer.c

index 498f14a..064c32c 100644 (file)
@@ -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);