From 8c00da9ec6abafca3111aa6c488301664d6904db Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 22 May 2016 15:54:18 +0100 Subject: [PATCH] Avoid crash when freeing websearch list --- frontends/amiga/gui_options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/amiga/gui_options.c b/frontends/amiga/gui_options.c index 221b0da95..9402a3fa7 100755 --- a/frontends/amiga/gui_options.c +++ b/frontends/amiga/gui_options.c @@ -2302,6 +2302,7 @@ void ami_gui_opts_websearch_free(struct List *websearchlist) struct Node *node; struct Node *nnode; + if(websearchlist == NULL) return; if(IsListEmpty(websearchlist)) return; node = GetHead(websearchlist);