1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 15:03:14 +02:00

Fix segfault when a module throws an exception.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1601 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-11-08 17:54:14 +00:00
parent 03e3bb1a59
commit 0b9ae6c1ea
+2 -1
View File
@@ -344,6 +344,7 @@ void modules_unload_all(bool fini, bool unload_proto)
Module::Module(const std::string &mname, const std::string &creator)
{
this->name = mname; /* Our name */
this->filename = NULL;
this->nickHelp = NULL;
this->chanHelp = NULL;
this->memoHelp = NULL;
@@ -381,7 +382,7 @@ Module::~Module()
}
/*
* No need to free our cmd/msg list, as they will always be empty by the module is destroyed
* No need to free our cmd/msg list, as they will always be empty by the module is destroyed
* XXX: not sure I like this assumption -- w00t
*/
}