From 98659aa0dcac7636627846555ef7d5f807152b7e Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 21 Apr 2008 16:59:23 +0000 Subject: Merge in large patchset from GreenReaper, useful fixes for freeing a ton of different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/usermanager.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/usermanager.h') 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 */ -- cgit v1.2.3