aboutsummaryrefslogtreecommitdiffhomepage
path: root/lru.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-17 14:54:58 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-17 14:54:58 -0800
commit51da4856e2ff124d8d5ad7a4a6ca844c81825133 (patch)
tree801c4e75be2bd9469f5d98f480a20d2dce4021e3 /lru.h
parent3b56c58f00c382ceb83eac78baede3a4b76c08a0 (diff)
Squash a leak in LRU caches
Diffstat (limited to 'lru.h')
-rw-r--r--lru.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lru.h b/lru.h
index c985aca8..c856c517 100644
--- a/lru.h
+++ b/lru.h
@@ -101,6 +101,9 @@ class lru_cache_t {
mouth.prev = mouth.next = &mouth;
}
+ /** Note that we do not define a destructor. We cannot evict all nodes (even though they typically need to be deleted by their creator). */
+
+
/** Returns the node for a given key, or NULL */
node_type_t *get_node(const wcstring &key) {
node_type_t *result = NULL;