diff options
author | dscho <dscho> | 2005-05-14 11:13:52 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-05-14 11:13:52 +0000 |
commit | 446a6fabac3d00f1f4e05cf6cba483f4bfb3efba (patch) | |
tree | 5b82f6d88e6522da6b725d3ba769e629568a082f /examples | |
parent | 3a7e70de49823259558694a3f92401a9f966d9da (diff) | |
download | libtdevnc-446a6fabac3d00f1f4e05cf6cba483f4bfb3efba.tar.gz libtdevnc-446a6fabac3d00f1f4e05cf6cba483f4bfb3efba.zip |
fix memory leaks detected using valgrind
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 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; |