From 24dbf4e00c4d284ef7e77cbe6f6d5fd2979c5b01 Mon Sep 17 00:00:00 2001 From: robbeh Date: Tue, 10 Feb 2009 09:17:34 +0000 Subject: [PATCH] Use a virtual destructor for Commands as it has virtual functions git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1969 5417fbe8-f217-4b02-8779-1006273d7864 --- include/modules.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/modules.h b/include/modules.h index eb0b8c4a6..ec1fe18fc 100644 --- a/include/modules.h +++ b/include/modules.h @@ -178,7 +178,7 @@ class Command this->root_help = NULL; } - ~Command() + virtual ~Command() { this->has_priv = NULL; if (this->mod_name) {