From e279597c0b166d627bff09ecc8f1fcd28a631660 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 30 Sep 2009 03:22:25 +0000 Subject: Fix compilation of SQL modules, use GlobalCulls to clean up deleted modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11780 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 67c90b128..db41a757a 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -561,8 +561,8 @@ bool ModuleManager::Unload(const char* filename) ServerInstance->Parser->RemoveCommands(modfind->second.second); - delete modfind->second.second; - delete modfind->second.first; + ServerInstance->GlobalCulls.AddItem(modfind->second.second); + ServerInstance->GlobalCulls.AddItem(modfind->second.first); Modules.erase(modfind); ServerInstance->Logs->Log("MODULE", DEFAULT,"Module %s unloaded",filename); -- cgit v1.2.3