diff options
author | steven_carr <steven_carr> | 2006-05-28 20:38:26 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-28 20:38:26 +0000 |
commit | 1955526d45fd151551af4384b7d58515fea67f84 (patch) | |
tree | d92fc57bac94fa8c8a5b5c9d53798aa2ab5dec70 /libvncserver/rre.c | |
parent | 2fa31ba4ea2581ea0886ec35daa4a19ca55e234d (diff) | |
download | libtdevnc-1955526d45fd151551af4384b7d58515fea67f84.tar.gz libtdevnc-1955526d45fd151551af4384b7d58515fea67f84.zip |
Plugged some memory leakage
Diffstat (limited to 'libvncserver/rre.c')
-rwxr-xr-x | libvncserver/rre.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libvncserver/rre.c b/libvncserver/rre.c index c0759aa..b43561a 100755 --- a/libvncserver/rre.c +++ b/libvncserver/rre.c @@ -48,6 +48,19 @@ static int subrectEncode32(uint32_t *data, int w, int h); static uint32_t getBgColour(char *data, int size, int bpp); +void rfbRRECleanup(rfbScreenInfoPtr screen) +{ + if (rreBeforeBufSize) { + free(rreBeforeBuf); + rreBeforeBufSize=0; + } + if (rreAfterBufSize) { + free(rreAfterBuf); + rreAfterBufSize=0; + } +} + + /* * rfbSendRectEncodingRRE - send a given rectangle using RRE encoding. */ |