From 37fd031da06761c8a050105b55d73a8ab499fb74 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 13 Oct 2009 21:34:29 +0000 Subject: Remove Command and ModeHandler objects in their destructors; fixes possible pointer leak if a module was not careful when triggering exceptions in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11872 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/ctables.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/ctables.h') diff --git a/include/ctables.h b/include/ctables.h index c0c094e6f..0cf4c50d2 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -90,7 +90,7 @@ class CoreExport Command : public Extensible public: /** Command name */ - std::string command; + const std::string command; /** Creator module - never NULL */ Module* const creator; @@ -211,9 +211,7 @@ class CoreExport Command : public Extensible return works_before_reg; } - virtual ~Command() - { - } + virtual ~Command(); }; /** A hash of commands used by the core -- cgit v1.2.3