From 8c423b56dfb29b905f2b74735a2d18478200e5cd Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 4 May 2012 18:37:12 -0700 Subject: [PATCH] Define a virtual destructor for lru.h --- lru.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lru.h b/lru.h index c856c5171..2da9ab234 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 */