# HG changeset patch # User ib # Date 1328992940 0 # Node ID 80246b016cafc27e2ae42f5e347247d290f2121c # Parent 877e37095c2defc52818a24c45c535015d32319b Add code to free the URL list items. diff -r 877e37095c2d -r 80246b016caf gui/util/list.c --- a/gui/util/list.c Sat Feb 11 17:21:14 2012 +0000 +++ b/gui/util/list.c Sat Feb 11 20:42:20 2012 +0000 @@ -187,6 +187,13 @@ urlList = url_item; } return NULL; + + case gtkDelURL: + while (urlList) { + free(urlList->url); + urlList = urlList->next; + } + return NULL; } return NULL; diff -r 877e37095c2d -r 80246b016caf gui/util/list.h --- a/gui/util/list.h Sat Feb 11 17:21:14 2012 +0000 +++ b/gui/util/list.h Sat Feb 11 20:42:20 2012 +0000 @@ -24,6 +24,7 @@ #define gtkGetPrevPlItem 7 #define gtkGetCurrPlItem 8 #define gtkDelPl 9 +#define gtkDelURL 10 #define gtkDelCurrPlItem 23 #define gtkInsertPlItem 24 #define gtkSetCurrPlItem 25