From: Maxim Mamontov Date: Wed, 14 Sep 2011 14:31:47 +0000 (+0300) Subject: Add virtual destructor for settings and traffcounter X-Git-Tag: 2.408-rc1~60 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/57b91afcae210f9f5acd66ee5ad2908cabbf5748 Add virtual destructor for settings and traffcounter --- diff --git a/include/stg/settings.h b/include/stg/settings.h index e62f403b..d23494bc 100644 --- a/include/stg/settings.h +++ b/include/stg/settings.h @@ -25,6 +25,7 @@ class SETTINGS { public: + virtual ~SETTINGS() {} virtual const std::string & GetDirName(size_t num) const = 0; virtual const std::string & GetScriptsDir() const = 0; virtual unsigned GetDetailStatWritePeriod() const = 0; diff --git a/include/stg/traffcounter.h b/include/stg/traffcounter.h index 75c8c481..97d17837 100644 --- a/include/stg/traffcounter.h +++ b/include/stg/traffcounter.h @@ -25,6 +25,7 @@ class TRAFFCOUNTER { public: + virtual ~TRAFFCOUNTER() {} virtual void Process(const RAW_PACKET & rawPacket) = 0; virtual size_t RulesCount() const = 0; };