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) {