aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientList.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ClientList.hxx b/src/ClientList.hxx
index e8560af78..8c6b15755 100644
--- a/src/ClientList.hxx
+++ b/src/ClientList.hxx
@@ -33,6 +33,9 @@ class ClientList {
public:
ClientList(unsigned _max_size)
:max_size(_max_size), size(0) {}
+ ~ClientList() {
+ CloseAll();
+ }
std::list<Client *>::iterator begin() {
return list.begin();