Avoid crash when freeing websearch list

This commit is contained in:
Chris Young 2016-05-22 15:54:18 +01:00
parent 6d71cdefc9
commit 8c00da9ec6

View File

@ -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);