summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
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)