From c5dc7ae664b14618c0c01484d1aff468e65f0b22 Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Fri, 19 Jan 2024 15:42:42 -0300 Subject: [PATCH] fix: LookupCallback has virtual destructor --- src/lib/Lib/Lookup.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/Lib/Lookup.hpp b/src/lib/Lib/Lookup.hpp index 68f943b38..aa430bc39 100644 --- a/src/lib/Lib/Lookup.hpp +++ b/src/lib/Lib/Lookup.hpp @@ -62,6 +62,7 @@ class SymbolLookup struct LookupCallback { + virtual ~LookupCallback() = default; virtual bool operator()(const Info&) = 0; }; @@ -139,6 +140,8 @@ makeHandler(Fn& fn) Fn& fn_; public: + ~LookupCallbackImpl() override = default; + LookupCallbackImpl(Fn& fn) : fn_(fn) {