summaryrefslogtreecommitdiffstats
path: root/libvncserver/main.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/main.c
parent2fa31ba4ea2581ea0886ec35daa4a19ca55e234d (diff)
downloadlibtdevnc-1955526d45fd151551af4384b7d58515fea67f84.tar.gz
libtdevnc-1955526d45fd151551af4384b7d58515fea67f84.zip
Plugged some memory leakage
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r--libvncserver/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c
index ee5af4a..3af90ca 100644
--- a/libvncserver/main.c
+++ b/libvncserver/main.c
@@ -982,7 +982,12 @@ void rfbScreenCleanup(rfbScreenInfoPtr screen)
TINI_MUTEX(screen->cursorMutex);
if(screen->cursor && screen->cursor->cleanup)
rfbFreeCursor(screen->cursor);
+
+ rfbRRECleanup(screen);
+ rfbCoRRECleanup(screen);
+ rfbUltraCleanup(screen);
#ifdef LIBVNCSERVER_HAVE_LIBZ
+ rfbZlibCleanup(screen);
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
rfbTightCleanup(screen);
#endif