i2c: correct missing destruction

This commit is contained in:
Michael Scire authored and SciresM committed 2020-11-14 03:37:51 -08:00
1 parent 1d8744164e
commit 304b9bfbd1
1 file changed
+1
@@ -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));
}
}