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 --- src/snomasks.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/snomasks.cpp') diff --git a/src/snomasks.cpp b/src/snomasks.cpp index de900623d..e6323b50c 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -24,7 +24,12 @@ SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance) } SnomaskManager::~SnomaskManager() -{ +{ + for (std::map::iterator i = SnoMasks.begin(); i != SnoMasks.end(); i++) + { + delete i->second; + } + SnoMasks.clear(); } void SnomaskManager::FlushSnotices() -- cgit v1.2.3