Closed JorisHansMeijer closed 1 year ago
When using websockets the wsctx context is not freed after a disconnect.
To solve this, in rfbserver.c add to rfbClientConnectionGone:
if (cl->wsctx != NULL) { free(cl->wsctx); cl->wsctx = NULL; }
Thanks for finding out! Could you be so kind and file a pull request? This way, we can also have proper author credits :-)
Done
When using websockets the wsctx context is not freed after a disconnect.
To solve this, in rfbserver.c add to rfbClientConnectionGone:
if (cl->wsctx != NULL) { free(cl->wsctx); cl->wsctx = NULL; }