diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2014-03-30 13:11:18 -0500 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2014-03-30 13:11:18 -0500 |
commit | bd811bdee97a41d6e8ac19afbbcae27c1b0c2d6d (patch) | |
tree | c4cd4a003504aaa46f567cc0c65a502958ee8b58 /examples | |
parent | 7b9fc019de681125df48eb0650d3235aed87d8a5 (diff) | |
download | libtdevnc-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 'examples')
-rw-r--r-- | examples/example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example.c b/examples/example.c index fc156c0..617e7ad 100644 --- a/examples/example.c +++ b/examples/example.c @@ -66,6 +66,7 @@ typedef struct ClientData { static void clientgone(rfbClientPtr cl) { free(cl->clientData); + cl->clientData = NULL; } static enum rfbNewClientAction newclient(rfbClientPtr cl) |