diff options
author | Adam <Adam@anope.org> | 2011-10-10 15:04:23 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-10 15:04:23 -0400 |
commit | 80f4f317b247ee3756fbc001495310b2f7c4e997 (patch) | |
tree | 3fd6abe3dbabe221e08999462b2b52c0687ec9fe /src | |
parent | 9f3d735d9d461e0cea042722ac1c6af98fe6560e (diff) |
Put serialized_items on the heap to prevent weird crashes on shutdown from the list being destructed before members in it
Diffstat (limited to 'src')
-rw-r--r-- | src/base.cpp | 2 | ||||
-rw-r--r-- | src/main.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index 18450ef90..e45e6365c 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -2,7 +2,7 @@ #include "modules.h" std::vector<SerializableBase *> serialized_types; -std::list<SerializableBase *> serialized_items; +std::list<SerializableBase *> *serialized_items; void RegisterTypes() { diff --git a/src/main.cpp b/src/main.cpp index 4d812a322..279e9792a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -379,7 +379,6 @@ int main(int ac, char **av, char **envp) ModuleManager::UnloadModule(m, NULL); ModuleManager::CleanupRuntimeDirectory(); - serialized_items.clear(); #ifdef _WIN32 OnShutdown(); |