X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fusermanager.h;h=3a9e151507b9b79ca2be8e372fe46d599cde8a0f;hb=9f33bf7fc83cffccae96eb622bf39e8f4838b809;hp=4c50c4292720251ec47471fcf0a54d5d4bc28bf0;hpb=6d6f0ef3c67974e14cc226a442e09b2d0cb37146;p=user%2Fhenk%2Fcode%2Finspircd.git 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 */