From 304b9bfbd192dddac3fca0c27bf780e6c6f133a7 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)); } }