diff options
Diffstat (limited to 'examples/fontsel.c')
-rw-r--r-- | examples/fontsel.c | 4 |
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); } |