From 57b91afcae210f9f5acd66ee5ad2908cabbf5748 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 14 Sep 2011 17:31:47 +0300 Subject: [PATCH] Add virtual destructor for settings and traffcounter --- include/stg/settings.h | 1 + include/stg/traffcounter.h | 1 + 2 files changed, 2 insertions(+) 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; }; -- 2.44.2