changeset 1621:c1e218f916fa

some remove_fast at freeall() time
author corvid <corvid@lavabit.com>
date Thu, 18 Mar 2010 07:08:09 +0000
parents 7aca003dbfca
children 5fafc795ebbd
files src/cache.c src/dicache.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cache.c	Sun Mar 14 19:09:24 2010 +0000
+++ b/src/cache.c	Thu Mar 18 07:08:09 2010 +0000
@@ -1329,7 +1329,7 @@
 
    /* Remove every cache entry */
    while ((data = dList_nth_data(CachedURLs, 0))) {
-      dList_remove(CachedURLs, data);
+      dList_remove_fast(CachedURLs, data);
       Cache_entry_free(data);
    }
    /* Remove the cache list */
--- a/src/dicache.c	Sun Mar 14 19:09:24 2010 +0000
+++ b/src/dicache.c	Thu Mar 18 07:08:09 2010 +0000
@@ -573,7 +573,7 @@
          a_Imgbuf_unref(entry->v_imgbuf);
          dicache_size_total -= entry->TotalSize;
       }
-      dList_remove(CachedIMGs, node);
+      dList_remove_fast(CachedIMGs, node);
       a_Url_free(node->url);
       dFree(node);
    }