kern: fix KLinkedList dtor
This commit is contained in:
1 parent
71d266f867
commit
52c89a76b2
2 files changed
+14
-4
No files matched your search
@@ -122,6 +122,16 @@ namespace ams::kern {
|
||||
public:
|
||||
constexpr KLinkedList() : BaseList() { /* ... */ }
|
||||
|
||||
~KLinkedList() {
|
||||
/* Erase all elements. */
|
||||
for (auto it = this->begin(); it != this->end(); it = this->erase(it)) {
|
||||
/* ... */
|
||||
}
|
||||
|
||||
/* Ensure we succeeded. */
|
||||
MESOSPHERE_ASSERT(this->empty());
|
||||
}
|
||||
|
||||
/* Iterator accessors. */
|
||||
iterator begin() {
|
||||
return iterator(BaseList::begin());
|
||||
|
||||
Reference in new issue
Block a user