set.mitm: Fix mismatched new[] / delete

This commit is contained in:
Léo Lam 2019-03-08 12:18:54 +01:00
parent 6422509c54
commit 218e40179a

View File

@ -257,7 +257,7 @@ void SettingsItemManager::LoadConfiguration() {
char *config_buf = new char[0x10000];
std::memset(config_buf, 0, 0x10000);
ON_SCOPE_EXIT {
delete config_buf;
delete[] config_buf;
};
/* Read from file. */