diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-04 18:37:12 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-04 18:37:12 -0700 |
commit | 8c423b56dfb29b905f2b74735a2d18478200e5cd (patch) | |
tree | 6ec14bd86a56db6dbc0b622184fbd3ec78116bcf /lru.h | |
parent | a868abb55a0cef81cb8760e70ac160853a80e5d0 (diff) |
Define a virtual destructor for lru.h
Diffstat (limited to 'lru.h')
-rw-r--r-- | lru.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |