mirror of https://gitlab.com/rnger/amath
Fix potential memory leak
This commit is contained in:
parent
aff002dbda
commit
a1a5aea15e
|
@ -57,7 +57,7 @@ bool AmigaPreferences::Load()
|
|||
}
|
||||
} while (c != NULL);
|
||||
|
||||
delete buf;
|
||||
delete [] buf;
|
||||
Close(file);
|
||||
SetPrefs(text->GetString());
|
||||
delete text;
|
||||
|
|
Loading…
Reference in New Issue