Define a virtual destructor for lru.h
This commit is contained in:
parent
a868abb55a
commit
8c423b56df
3
lru.h
3
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user