Deskcalc: Fix 'new[]' array freed with 'delete'
fKeypad is allocated by new[] in _ParseCalcDesc(), but freed by delete. Pointed out by LGTM. Change-Id: Iac81d3cc6bfcf003ddf9146415a4400c34a1b7f2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1879 Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
parent
7abf1b6fba
commit
dfb3c928f8
@ -201,7 +201,7 @@ CalcView::CalcView(BMessage* archive)
|
||||
|
||||
CalcView::~CalcView()
|
||||
{
|
||||
delete fKeypad;
|
||||
delete[] fKeypad;
|
||||
delete fOptions;
|
||||
free(fKeypadDescription);
|
||||
delete fEvaluateMessageRunner;
|
||||
|
Loading…
Reference in New Issue
Block a user