diff gui/util/list.c @ 34599:80246b016caf

Add code to free the URL list items.
author ib
date Sat, 11 Feb 2012 20:42:20 +0000
parents 5860cfaff0a4
children f9b7f4b48fcb
line wrap: on
line diff
--- 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;