Fix potential memory leak

This commit is contained in:
Carsten Larsen 2017-01-11 20:59:21 +01:00
parent 156def0cd0
commit 76ef9ca5ad
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ bool AmigaPreferences::Load()
}
} while (c != NULL);
delete buf;
delete [] buf;
Close(file);
SetPrefs(text->GetString());
delete text;