Define a virtual destructor for lru.h

This commit is contained in:
ridiculousfish 2012-05-04 18:37:12 -07:00
parent a868abb55a
commit 8c423b56df

3
lru.h
View File

@ -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 */