mirror of
https://github.com/anope/anope.git
synced 2026-07-09 08:03:13 +02:00
Put serialized_items on the heap to prevent weird crashes on shutdown from the list being destructed before members in it
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
#include "modules.h"
|
||||
|
||||
std::vector<SerializableBase *> serialized_types;
|
||||
std::list<SerializableBase *> serialized_items;
|
||||
std::list<SerializableBase *> *serialized_items;
|
||||
|
||||
void RegisterTypes()
|
||||
{
|
||||
|
||||
@@ -379,7 +379,6 @@ int main(int ac, char **av, char **envp)
|
||||
ModuleManager::UnloadModule(m, NULL);
|
||||
|
||||
ModuleManager::CleanupRuntimeDirectory();
|
||||
serialized_items.clear();
|
||||
|
||||
#ifdef _WIN32
|
||||
OnShutdown();
|
||||
|
||||
Reference in New Issue
Block a user