Fix potential memory leak

This commit is contained in:
Carsten Larsen 2017-01-11 20:59:21 +01:00
parent aff002dbda
commit a1a5aea15e
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;