From d5c85f308aec2da5381e94fb09a7410a37d8c349 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 27 Feb 2020 12:48:40 +0300 Subject: [PATCH] fixed_typemap.hpp: forgot destructor --- rpcs3/util/fixed_typemap.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rpcs3/util/fixed_typemap.hpp b/rpcs3/util/fixed_typemap.hpp index 02018f051e..a6bfce4225 100644 --- a/rpcs3/util/fixed_typemap.hpp +++ b/rpcs3/util/fixed_typemap.hpp @@ -78,6 +78,16 @@ namespace stx std::swap(m_init_count, x.m_init_count); } + ~manual_fixed_typemap() + { + if (!m_list) + { + return; + } + + reset(); + } + // Destroy all objects and keep them in uninitialized state, must be called first void reset() noexcept {