Skip to content

Commit 13cb92e

Browse files
rkarthik2k21PastaPastaPastaUdjinM6
authored
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 <[email protected]> Co-authored-by: PastaPastaPasta <[email protected]> Co-authored-by: UdjinM6 <[email protected]>
1 parent 4ead0a7 commit 13cb92e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bls/bls.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class CBLSWrapper
8080
return *this;
8181
}
8282

83+
virtual ~CBLSWrapper() {}
84+
8385
bool operator==(const C& r) const
8486
{
8587
return fValid == r.fValid && impl == r.impl;
@@ -321,6 +323,7 @@ class CBLSLazyWrapper
321323
{
322324
*this = r;
323325
}
326+
virtual ~CBLSLazyWrapper() {}
324327

325328
CBLSLazyWrapper& operator=(const CBLSLazyWrapper& r)
326329
{

0 commit comments

Comments
 (0)