summaryrefslogtreecommitdiffstats
path: root/examples/fontsel.c
diff options
context:
space:
mode:
authordscho <dscho>2005-05-07 13:33:09 +0000
committerdscho <dscho>2005-05-07 13:33:09 +0000
commit34f714bcdc3e2d7a21a9179357dc93f2561301c8 (patch)
tree850d98f9535bd0e1fa10faff773e5069bbefbd40 /examples/fontsel.c
parent1bb36df34ea25a3379b5232154a55e4da489ab60 (diff)
downloadlibtdevnc-34f714bcdc3e2d7a21a9179357dc93f2561301c8.tar.gz
libtdevnc-34f714bcdc3e2d7a21a9179357dc93f2561301c8.zip
socketInitDone -> socketState
Diffstat (limited to 'examples/fontsel.c')
-rw-r--r--examples/fontsel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/fontsel.c b/examples/fontsel.c
index 4aa702c..a2a2f82 100644
--- a/examples/fontsel.c
+++ b/examples/fontsel.c
@@ -58,13 +58,15 @@ int main(int argc,char** argv)
exit(1);
}
- for(j=0;j<0;j++)
+ for(j=0;j<0 && rfbIsActive(s);j++)
rfbProcessEvents(s,900000);
i = rfbSelectBox(s,font,fontlist,10,20,200,300,0xffdfdf,0x602040,2,showFont);
rfbLog("Selection: %d: %s\n",i,(i>=0)?fontlist[i]:"cancelled");
rfbFreeFont(font);
+ free(s->frameBuffer);
+ rfbScreenCleanup(s);
return(0);
}