Skip to content

Commit c5dc7ae

Browse files
committed
fix: LookupCallback has virtual destructor
1 parent 70a9347 commit c5dc7ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/Lib/Lookup.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class SymbolLookup
6262

6363
struct LookupCallback
6464
{
65+
virtual ~LookupCallback() = default;
6566
virtual bool operator()(const Info&) = 0;
6667
};
6768

@@ -139,6 +140,8 @@ makeHandler(Fn& fn)
139140
Fn& fn_;
140141

141142
public:
143+
~LookupCallbackImpl() override = default;
144+
142145
LookupCallbackImpl(Fn& fn)
143146
: fn_(fn)
144147
{

0 commit comments

Comments
 (0)