From 13cb92e27f50c62ff9958402501dba7165633dab Mon Sep 17 00:00:00 2001 From: rkarthik2k21 <87784142+rkarthik2k21@users.noreply.github.com> Date: Wed, 28 Jul 2021 16:13:26 -0400 Subject: [PATCH] Add virtual destructors for CBLSWrapper and CBLSLazyWrapper (#4298) * Fixes issue #3759 Add virtual destructors for CBLSWrapper and CBLSLazyWrapper * Fix linter errors Co-authored-by: UdjinM6 Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Co-authored-by: UdjinM6 --- src/bls/bls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bls/bls.h b/src/bls/bls.h index d1bace3218..9f32f395ac 100644 --- a/src/bls/bls.h +++ b/src/bls/bls.h @@ -80,6 +80,8 @@ public: return *this; } + virtual ~CBLSWrapper() {} + bool operator==(const C& r) const { return fValid == r.fValid && impl == r.impl; @@ -321,6 +323,7 @@ public: { *this = r; } + virtual ~CBLSLazyWrapper() {} CBLSLazyWrapper& operator=(const CBLSLazyWrapper& r) {