diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-01 23:04:25 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-01 23:04:25 -0500 |
commit | 3a18a6dcab45467e779e91c7b346aa3b148e8b9c (patch) | |
tree | ba0d7d521179c2d3fbd7d989eb2033cd2a86dbaf /include/fud_string.hpp | |
parent | 4ef88103f74a3a6e8e36ae9eff80f641e20bd1a1 (diff) |
Fix move assignment operators or delete them to prevent leaks.
Diffstat (limited to 'include/fud_string.hpp')
-rw-r--r-- | include/fud_string.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fud_string.hpp b/include/fud_string.hpp index 9e423ef..cd8e8f1 100644 --- a/include/fud_string.hpp +++ b/include/fud_string.hpp @@ -126,6 +126,8 @@ class String { const utf8* end() const; private: + void cleanup(); + using BufType = Array<utf8, SSO_BUF_SIZE>; union { BufType m_buffer{BufType::constFill(0)}; |