diff --git a/immer/heap/unsafe_free_list_heap.hpp b/immer/heap/unsafe_free_list_heap.hpp index 9b41dfcb..0e6467b5 100644 --- a/immer/heap/unsafe_free_list_heap.hpp +++ b/immer/heap/unsafe_free_list_heap.hpp @@ -24,6 +24,8 @@ struct unsafe_free_list_storage { free_list_node* data; std::size_t count; + + ~head_t() { Heap::clear(); } }; static head_t& head()