summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2003-08-08 11:36:21 +0000
committerdscho <dscho>2003-08-08 11:36:21 +0000
commit1fd42ce98cd082309f72467bee73a910c9662fc9 (patch)
treecfd4cc6d9037397a41f1e8579dd54d7c91d49a35 /main.c
parentf9e179613f072e15cc7433bc96e38005c854b29f (diff)
downloadlibtdevnc-1fd42ce98cd082309f72467bee73a910c9662fc9.tar.gz
libtdevnc-1fd42ce98cd082309f72467bee73a910c9662fc9.zip
make --without-jpeg, --without-zlib work
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index a1ae93a..04309e8 100644
--- a/main.c
+++ b/main.c
@@ -719,7 +719,9 @@ void rfbNewFramebuffer(rfbScreenInfoPtr rfbScreen, char *framebuffer,
rfbReleaseClientIterator(iterator);
}
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
extern void TightCleanup();
+#endif
void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen)
{
@@ -740,7 +742,9 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen)
if(rfbScreen->cursor)
rfbFreeCursor(rfbScreen->cursor);
free(rfbScreen);
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
TightCleanup();
+#endif
}
void rfbInitServer(rfbScreenInfoPtr rfbScreen)