summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 4c50c4292..3a9e15150 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -32,7 +32,15 @@ class CoreExport UserManager : public classbase
{
ServerInstance = Instance;
}
-
+
+ ~UserManager()
+ {
+ for (user_hash::iterator i = clientlist->begin();i != clientlist->end();i++)
+ {
+ delete i->second;
+ }
+ clientlist->clear();
+ }
/** Client list, a hash_map containing all clients, local and remote
*/