diff options
Diffstat (limited to 'libvncserver/zlib.c')
-rw-r--r-- | libvncserver/zlib.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libvncserver/zlib.c b/libvncserver/zlib.c index 56bcc6e..7b20f74 100644 --- a/libvncserver/zlib.c +++ b/libvncserver/zlib.c @@ -47,6 +47,19 @@ static int zlibAfterBufSize = 0; static char *zlibAfterBuf = NULL; static int zlibAfterBufLen; +void rfbZlibCleanup(rfbScreenInfoPtr screen) +{ + if (zlibBeforeBufSize) { + free(zlibBeforeBuf); + zlibBeforeBufSize=0; + } + if (zlibAfterBufSize) { + zlibAfterBufSize=0; + free(zlibAfterBuf); + } +} + + /* * rfbSendOneRectEncodingZlib - send a given rectangle using one Zlib * rectangle encoding. |