diff options
Diffstat (limited to 'libc/utils')
-rw-r--r-- | libc/utils/MPFRWrapper/MPFRUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp index 86882d0..1ee5cb1 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -70,6 +70,10 @@ public: mpfr_set(value, other.value, MPFR_RNDN); } + ~MPFRNumber() { + mpfr_clear(value); + } + MPFRNumber &operator=(const MPFRNumber &rhs) { mpfr_set(value, rhs.value, MPFR_RNDN); return *this; |