diff options
-rw-r--r-- | include/bls.hpp | 1 | ||||
-rw-r--r-- | src/bls.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/bls.hpp b/include/bls.hpp index 6ef7edf..4662d72 100644 --- a/include/bls.hpp +++ b/include/bls.hpp @@ -61,6 +61,7 @@ class Id { friend class SecretKey; public: Id(unsigned int id = 0); + ~Id(); Id(const Id& rhs); Id& operator=(const Id& rhs); bool operator==(const Id& rhs) const; diff --git a/src/bls.cpp b/src/bls.cpp index dc78c69..c2ae9bf 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -211,6 +211,11 @@ Id::Id(unsigned int id) self_->v = id; } +Id::~Id() +{ + delete self_; +} + Id::Id(const Id& rhs) : self_(new impl::Id(*rhs.self_)) { |