diff --git a/kernel/include/stl/list.hpp b/kernel/include/stl/list.hpp index 9288ab52..889b6275 100644 --- a/kernel/include/stl/list.hpp +++ b/kernel/include/stl/list.hpp @@ -33,6 +33,12 @@ public: //Nothing else to init } + ~list(){ + while(!empty()){ + pop_back(); + } + } + // Disable copy for now list(const list& rhs) = delete; list& operator=(const list& rhs) = delete;