From 3a18a6dcab45467e779e91c7b346aa3b148e8b9c Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 1 Oct 2024 23:04:25 -0500 Subject: Fix move assignment operators or delete them to prevent leaks. --- include/fud_string.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/fud_string.hpp') 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; union { BufType m_buffer{BufType::constFill(0)}; -- cgit v1.2.3