summaryrefslogtreecommitdiffstats
path: root/libvncserver/corre.c
diff options
context:
space:
mode:
authorsteven_carr <steven_carr>2006-05-28 20:38:26 +0000
committersteven_carr <steven_carr>2006-05-28 20:38:26 +0000
commit1955526d45fd151551af4384b7d58515fea67f84 (patch)
treed92fc57bac94fa8c8a5b5c9d53798aa2ab5dec70 /libvncserver/corre.c
parent2fa31ba4ea2581ea0886ec35daa4a19ca55e234d (diff)
downloadlibtdevnc-1955526d45fd151551af4384b7d58515fea67f84.tar.gz
libtdevnc-1955526d45fd151551af4384b7d58515fea67f84.zip
Plugged some memory leakage
Diffstat (limited to 'libvncserver/corre.c')
-rwxr-xr-xlibvncserver/corre.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libvncserver/corre.c b/libvncserver/corre.c
index 75f1211..bb07c77 100755
--- a/libvncserver/corre.c
+++ b/libvncserver/corre.c
@@ -50,6 +50,17 @@ static uint32_t getBgColour(char *data, int size, int bpp);
static rfbBool rfbSendSmallRectEncodingCoRRE(rfbClientPtr cl, int x, int y,
int w, int h);
+void rfbCoRRECleanup(rfbScreenInfoPtr screen)
+{
+ if (rreBeforeBufSize) {
+ free(rreBeforeBuf);
+ rreBeforeBufSize=0;
+ }
+ if (rreAfterBufSize) {
+ free(rreAfterBuf);
+ rreAfterBufSize=0;
+ }
+}
/*
* rfbSendRectEncodingCoRRE - send an arbitrary size rectangle using CoRRE