From 784d893eb74a59eec212e3d61003b9eea53d5706 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 26 Oct 2014 17:08:23 +0000 Subject: Avoid a crash on exit in kiosk mode --- amiga/gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index d91c7dbdc..0cb81743f 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1632,7 +1632,7 @@ static void ami_gui_refresh_favicon(void *p) } /* Gets the size that border gadget 1 (status) needs to be. - * Returns the height of the size gadget as a convenience. + * Returns the width of the size gadget as a convenience. */ static ULONG ami_get_border_gadget_size(struct gui_window_2 *gwin, ULONG *width, ULONG *height) { @@ -3143,6 +3143,8 @@ static void ami_gui_hotlist_toolbar_free(struct gui_window_2 *gwin, struct List struct Node *node; struct Node *nnode; + if(nsoption_bool(kiosk_mode) == true) return; + if(IsListEmpty(speed_button_list)) return; node = GetHead(speed_button_list); -- cgit v1.2.3