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);
|
} while (c != NULL);
|
||||||
|
|
||||||
delete buf;
|
delete [] buf;
|
||||||
Close(file);
|
Close(file);
|
||||||
SetPrefs(text->GetString());
|
SetPrefs(text->GetString());
|
||||||
delete text;
|
delete text;
|
||||||
|
|
Loading…
Reference in New Issue