diff options
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. */ |