From e6bddf8782d355ac70ff8d44bc6c0e4afab8c4a9 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 14 Nov 2020 03:37:17 -0800 Subject: [PATCH] i2c: correct missing destruction --- .../source/i2c/driver/board/nintendo_nx/impl/i2c_i_allocator.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/libstratosphere/source/i2c/driver/board/nintendo_nx/impl/i2c_i_allocator.hpp b/libraries/libstratosphere/source/i2c/driver/board/nintendo_nx/impl/i2c_i_allocator.hpp index 202838e94..270c882e1 100644 --- a/libraries/libstratosphere/source/i2c/driver/board/nintendo_nx/impl/i2c_i_allocator.hpp +++ b/libraries/libstratosphere/source/i2c/driver/board/nintendo_nx/impl/i2c_i_allocator.hpp @@ -38,6 +38,7 @@ namespace ams::i2c::driver::board::nintendo_nx::impl { T *obj = std::addressof(*it); it = this->list.erase(it); + obj->~T(); this->memory_resource->Deallocate(obj, sizeof(T)); } }