From deaaa4a753bc2bc4b694845a720b51e7ceafb742 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 23 Feb 2004 00:25:09 +0000 Subject: [project @ 2004-02-23 00:25:09 by bursa] Workaround for window closing crash. svn path=/import/netsurf/; revision=565 --- riscos/gui.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/riscos/gui.c b/riscos/gui.c index d24c55167..864e35464 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -334,6 +334,10 @@ void gui_multitask(void) switch (event) { case wimp_CLOSE_WINDOW_REQUEST: + /* \todo close the window, and destroy content + * or abort loading of content */ + break; + case wimp_KEY_PRESSED: case wimp_MENU_SELECTION: case wimp_USER_MESSAGE: @@ -444,6 +448,7 @@ void ro_gui_close_window_request(wimp_close *close) gui_window *g; g = ro_lookup_gui_from_w(close->w); + if (g) { browser_window_destroy(g->data.browser.bw #ifdef WITH_FRAMES -- cgit v1.2.3