summaryrefslogtreecommitdiffstats
path: root/libvncserver/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r--libvncserver/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c
index 7c29680..9340073 100644
--- a/libvncserver/main.c
+++ b/libvncserver/main.c
@@ -736,6 +736,8 @@ void rfbNewFramebuffer(rfbScreenInfoPtr screen, char *framebuffer,
extern void TightCleanup();
#endif
+/* hang up on all clients and free all reserved memory */
+
void rfbScreenCleanup(rfbScreenInfoPtr screen)
{
rfbClientIteratorPtr i=rfbGetClientIterator(screen);
@@ -747,7 +749,6 @@ void rfbScreenCleanup(rfbScreenInfoPtr screen)
}
rfbReleaseClientIterator(i);
- /* TODO: hang up on all clients and free all reserved memory */
#define FREE_IF(x) if(screen->x) free(screen->x)
FREE_IF(colourMap.data.bytes);
FREE_IF(underCursorBuffer);