summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authordscho <dscho>2005-05-14 11:13:52 +0000
committerdscho <dscho>2005-05-14 11:13:52 +0000
commit446a6fabac3d00f1f4e05cf6cba483f4bfb3efba (patch)
tree5b82f6d88e6522da6b725d3ba769e629568a082f /examples
parent3a7e70de49823259558694a3f92401a9f966d9da (diff)
downloadlibtdevnc-446a6fabac3d00f1f4e05cf6cba483f4bfb3efba.tar.gz
libtdevnc-446a6fabac3d00f1f4e05cf6cba483f4bfb3efba.zip
fix memory leaks detected using valgrind
Diffstat (limited to 'examples')
-rw-r--r--examples/example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example.c b/examples/example.c
index f4a1f08..59ac518 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -258,6 +258,7 @@ void MakeRichCursor(rfbScreenInfoPtr rfbScreen)
c->xhot = 16; c->yhot = 24;
c->richSource = (char*)malloc(w*h*bpp);
+ c->cleanupRichSource = TRUE;
for(j=0;j<h;j++) {
for(i=0;i<w;i++) {
c->richSource[j*w*bpp+i*bpp+0]=i*0xff/w;