summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-10-26 17:08:23 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-10-26 17:08:23 +0000
commit784d893eb74a59eec212e3d61003b9eea53d5706 (patch)
treeed918d13c150c82348abc7b8837d6a9d34db09b0
parent36a3e58c061cd7328f3ccc7a0e2247760ca99aa1 (diff)
downloadnetsurf-784d893eb74a59eec212e3d61003b9eea53d5706.tar.gz
netsurf-784d893eb74a59eec212e3d61003b9eea53d5706.tar.bz2
Avoid a crash on exit in kiosk mode
-rw-r--r--amiga/gui.c4
1 files changed, 3 insertions, 1 deletions
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);