summaryrefslogtreecommitdiffstats
path: root/cursor.c
diff options
context:
space:
mode:
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);