fs_mitm: Fix mismatched new[] / delete (#389)
* fs.mitm: Fix mismatched new[] / delete

Using delete instead of delete[] on a pointer given by new[] is
undefined behaviour.

For memory sources, malloc/free are used because cleaning up is tricky
when data can be either allocated with new (RomfsHeader) or new[]
(metadata).

* set.mitm: Fix mismatched new[] / delete
1 parent 66560d0 commit b6d3df333588f14ad3a56b10fb6222cb2b9a54fe
@Léo Lam Léo Lam authored on 8 Mar 2019
SciresM committed on 8 Mar 2019
Showing 3 changed files
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfsbuild.cpp
View
stratosphere/ams_mitm/source/fs_mitm/fsmitm_romfsbuild.hpp
View
stratosphere/ams_mitm/source/set_mitm/setsys_settings_items.cpp