diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command_parse.cpp | 1 | ||||
-rw-r--r-- | src/modules/m_remove.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index ba06c96e1..ab3df5263 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -395,6 +395,7 @@ void CommandParser::RemoveCommand(command_table::iterator safei, const char* sou if (x->source == std::string(source)) { cmdlist.erase(safei); + delete x; } } diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 9df5d200b..d28087ba8 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -276,8 +276,6 @@ class ModuleRemove : public Module virtual ~ModuleRemove() { - delete mycommand; - delete mycommand2; } virtual Version GetVersion() |