Commit bd811bde authored by Johannes Schindelin's avatar Johannes Schindelin

After free()ing clientData, set it to NULL

We will change rfbClientCleanup() to free the data.
Signed-off-by: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent 7b9fc019
......@@ -66,6 +66,7 @@ typedef struct ClientData {
static void clientgone(rfbClientPtr cl)
{
free(cl->clientData);
cl->clientData = NULL;
}
static enum rfbNewClientAction newclient(rfbClientPtr cl)
......
......@@ -172,6 +172,7 @@ static void* clientLoop(void* data) {
}
free(((clientData*)client->clientData)->display);
free(client->clientData);
client->clientData = NULL;
if(client->frameBuffer)
free(client->frameBuffer);
rfbClientCleanup(client);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment