diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-30 03:22:25 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-30 03:22:25 +0000 |
commit | e279597c0b166d627bff09ecc8f1fcd28a631660 (patch) | |
tree | 64d87a0d5660188c2871c91d57960a520ed2c8aa /src/modules.cpp | |
parent | 6b27fae945e5310a76cb7fa2a5ff0059cd436ac9 (diff) |
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
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |