Fix serious crash if NetSurf is running twice (once with the FORCE switch) on a

NetSurf-created public screen, and the sessions are quit in the reverse order to which
they were launched.

svn path=/trunk/netsurf/; revision=10950
This commit is contained in:
Chris Young 2010-11-21 23:30:35 +00:00
parent 71ea71540a
commit c14f335454
1 changed files with 3 additions and 13 deletions

View File

@ -2047,24 +2047,14 @@ void gui_quit(void)
ami_close_fonts();
if(!locked_screen) /* set if we are using somebody else's screen */
{
while(!CloseScreen(scrn));
}
else
{
/* have a go at closing the public screen, apparently this is OK to do */
CloseScreen(scrn);
}
/* Have a go at closing the public screen, apparently this is OK to do
even if it isn't our screen (ie. locked_screen != NULL) */
CloseScreen(scrn);
FreeVec(nsscreentitle);
if(option_context_menu) ami_context_menu_free();
/* fixme: need newmenu struct propd to this function - should this be freed here?
ami_free_menulabs(menu);
*/
ami_mouse_pointers_free();
ami_clipboard_free();
ami_print_free();