mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-13 22:47:15 -04:00
Empty the list when it gets destroyed
This commit is contained in:
parent
ef5b61d199
commit
cc37f73ba4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user