From 4c5320168c9dfe6cfb811d13239b18dfba41e7e2 Mon Sep 17 00:00:00 2001 From: Zhanglong Xia Date: Thu, 8 Jun 2023 01:33:11 +0800 Subject: [PATCH] [spinel] fix the non-virtual destructor error (#9139) --- src/lib/spinel/spinel_interface.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/spinel/spinel_interface.hpp b/src/lib/spinel/spinel_interface.hpp index 0edb2ade4..32989ee9f 100644 --- a/src/lib/spinel/spinel_interface.hpp +++ b/src/lib/spinel/spinel_interface.hpp @@ -155,6 +155,12 @@ public: * */ virtual otError HardwareReset(void) = 0; + + /** + * Marks destructor virtual method. + * + */ + virtual ~SpinelInterface() = default; }; } // namespace Spinel } // namespace ot