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:
+2
-1
@@ -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
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user