1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-08 13:11:49 +00:00

i2c: correct missing destruction

This commit is contained in:
Michael Scire 2020-11-14 03:37:17 -08:00
parent d8bd3d16bb
commit e6bddf8782

View file

@ -38,6 +38,7 @@ namespace ams::i2c::driver::board::nintendo_nx::impl {
T *obj = std::addressof(*it); T *obj = std::addressof(*it);
it = this->list.erase(it); it = this->list.erase(it);
obj->~T();
this->memory_resource->Deallocate(obj, sizeof(T)); this->memory_resource->Deallocate(obj, sizeof(T));
} }
} }