changeset 34601:f9b7f4b48fcb

Fix bug in freeing URL list items. The urlItem structure wasn't freed.
author ib
date Sat, 11 Feb 2012 21:05:34 +0000
parents 19398061c204
children a5d0652dd1a0
files gui/util/list.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/list.c	Sat Feb 11 20:43:02 2012 +0000
+++ b/gui/util/list.c	Sat Feb 11 21:05:34 2012 +0000
@@ -190,8 +190,12 @@
 
     case gtkDelURL:
         while (urlList) {
+            urlItem *next = urlList->next;
+
             free(urlList->url);
-            urlList = urlList->next;
+            free(urlList);
+
+            urlList = next;
         }
         return NULL;
     }