diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 20:12:12 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 20:12:12 +0000 |
commit | aa7cc18468f4b16bf79cd1788cad0cbf0d926817 (patch) | |
tree | c34c0433dc5b166b17bab1e325942e1ca0610e3e /src/modules.cpp | |
parent | a813344b935e4adab163334669df969a586e67d5 (diff) |
Fix implementation of reference to const, use reference counting for ExtensibleItem
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11924 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index c5bd87cde..87d25ac42 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -460,7 +460,7 @@ void ModuleManager::DoSafeUnload(Module* mod) { std::map<std::string, Module*>::iterator modfind = Modules.find(mod->ModuleSourceFile); - std::vector<ExtensionItem*> items; + std::vector<reference<ExtensionItem> > items; ServerInstance->Extensions.BeginUnregister(modfind->second, items); /* Give the module a chance to tidy out all its metadata */ for (chan_hash::iterator c = ServerInstance->chanlist->begin(); c != ServerInstance->chanlist->end(); c++) |