summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2014-03-30 13:11:18 -0500
committerJohannes Schindelin <johannes.schindelin@gmx.de>2014-03-30 13:11:18 -0500
commitbd811bdee97a41d6e8ac19afbbcae27c1b0c2d6d (patch)
treec4cd4a003504aaa46f567cc0c65a502958ee8b58 /test
parent7b9fc019de681125df48eb0650d3235aed87d8a5 (diff)
downloadlibtdevnc-bd811bdee97a41d6e8ac19afbbcae27c1b0c2d6d.tar.gz
libtdevnc-bd811bdee97a41d6e8ac19afbbcae27c1b0c2d6d.zip
After free()ing clientData, set it to NULL
We will change rfbClientCleanup() to free the data. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'test')
-rw-r--r--test/encodingstest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/encodingstest.c b/test/encodingstest.c
index c6c8255..715e887 100644
--- a/test/encodingstest.c
+++ b/test/encodingstest.c
@@ -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);