LibVNCClient: free buffers in rfbClientCleanup()

Buffers allocated by encoding handlers have to be freed as well.
pull/3/head
Tobias Junghans 4 years ago
parent ca2a5ac02f
commit 597473be04
  1. 6
      libvncclient/vncviewer.c

@ -519,6 +519,12 @@ void rfbClientCleanup(rfbClient* client) {
#endif
#endif
if (client->ultra_buffer)
free(client->ultra_buffer);
if (client->raw_buffer)
free(client->raw_buffer);
FreeTLS(client);
while (client->clientData) {

Loading…
Cancel
Save