From 964aa1628f2cc4fac17c22dc89fc2439bd87b00e Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 29 Jul 2003 15:02:33 +0000 Subject: further valgrinding showed leaked mallocs --- rfb/rfb.h | 2 ++ rfb/rfbclient.h | 1 + 2 files changed, 3 insertions(+) (limited to 'rfb') diff --git a/rfb/rfb.h b/rfb/rfb.h index fa66916..7acec11 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -635,6 +635,8 @@ extern Bool rfbSendRectEncodingTight(rfbClientPtr cl, int x,int y,int w,int h); /* cursor.c */ typedef struct rfbCursor { + /* set this to true if LibVNCServer has to free this cursor */ + Bool cleanup, cleanupSource, cleanupMask, cleanupRichSource; unsigned char *source; /* points to bits */ unsigned char *mask; /* points to bits */ unsigned short width, height, xhot, yhot; /* metrics */ diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index c08f3a5..d1b12dd 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -189,3 +189,4 @@ extern Bool SameMachine(int sock); /* vncviewer.c */ rfbClient* rfbGetClient(int* argc,char** argv,int bitsPerSample,int samplesPerPixel,int bytesPerPixel); Bool rfbInitClient(rfbClient* client,const char* vncServerHost,int vncServerPort); +void rfbClientCleanup(rfbClient* client); -- cgit v1.2.3