summaryrefslogtreecommitdiffstats
path: root/cursor.c
diff options
context:
space:
mode:
authordscho <dscho>2002-04-25 13:41:52 +0000
committerdscho <dscho>2002-04-25 13:41:52 +0000
commitefa12fa978ca10c329e4cb14fefa597a6d93f2e8 (patch)
tree5ee9b933785b16c810a3ba5962afb4f7596cbd58 /cursor.c
parent160c85f4ecd37b9ab046403e0bc1b5f834a9c3d4 (diff)
downloadlibvncserver-efa12fa978ca10c329e4cb14fefa597a6d93f2e8.zip
libvncserver-efa12fa978ca10c329e4cb14fefa597a6d93f2e8.tar.gz
memleaks patched
Diffstat (limited to 'cursor.c')
-rw-r--r--cursor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cursor.c b/cursor.c
index 057ff5e..bf2167d 100644
--- a/cursor.c
+++ b/cursor.c
@@ -272,6 +272,8 @@ char* rfbMakeMaskForXCursor(int width,int height,char* source)
void rfbFreeCursor(rfbCursorPtr cursor)
{
if(cursor) {
+ if(cursor->richSource)
+ free(cursor->richSource);
free(cursor->source);
free(cursor->mask);
free(cursor);
OpenPOWER on IntegriCloud