[Coverity] Resolve coverity issues due to no virtual destructor
authorDongju Chae <dongju.chae@samsung.com>
Tue, 11 Aug 2020 09:33:41 +0000 (18:33 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Wed, 12 Aug 2020 01:35:58 +0000 (10:35 +0900)
This patch resolves coverity issues due to no virtual destructor
in HWmem class (VIRTUAL_DTOR).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/ne-hwmem.h

index a45b34c..129f7e2 100644 (file)
@@ -69,7 +69,7 @@ class HWmemExternal : public HWmemImpl {
 class HWmem {
   public:
     HWmem (const HWmemImpl* impl = nullptr);
-    ~HWmem ();
+    virtual ~HWmem ();
 
     /** get private member variables */
     const DriverAPI * getDriverAPI () const { return api_; }