aboutsummaryrefslogtreecommitdiffhomepage
path: root/lru.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-04 18:37:12 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-04 18:37:12 -0700
commit8c423b56dfb29b905f2b74735a2d18478200e5cd (patch)
tree6ec14bd86a56db6dbc0b622184fbd3ec78116bcf /lru.h
parenta868abb55a0cef81cb8760e70ac160853a80e5d0 (diff)
Define a virtual destructor for lru.h
Diffstat (limited to 'lru.h')
-rw-r--r--lru.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lru.h b/lru.h
index c856c517..2da9ab23 100644
--- a/lru.h
+++ b/lru.h
@@ -101,7 +101,8 @@ 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). */
+ /** Note that we do not evict nodes in our destructor (even though they typically need to be deleted by their creator). */
+ virtual ~lru_cache_t() { }
/** Returns the node for a given key, or NULL */