Skip to content

Commit

Permalink
[spinel] fix the non-virtual destructor error (openthread#9139)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4c53201)
Change-Id: Id9f0af70a639c268b7a55e9e2651d890a6d6be7c
  • Loading branch information
zhanglongxia committed Jun 8, 2023
1 parent 57d4e5e commit 86ad280
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/spinel/spinel_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ class SpinelInterface
*
*/
virtual otError HardwareReset(void) = 0;

/**
* Marks destructor virtual method.
*
*/
virtual ~SpinelInterface() = default;
};
} // namespace Spinel
} // namespace ot
Expand Down

0 comments on commit 86ad280

Please sign in to comment.