Fixed small memory leak in Qt debugger asm viewer.

This commit is contained in:
mjbudd77 2021-04-20 22:26:28 -04:00
parent 867ad36a2d
commit 5ec2c5efdc
1 changed files with 3 additions and 1 deletions

View File

@ -2104,7 +2104,8 @@ void QAsmView::updateAssemblyView(void)
{ {
sprintf(chr, "%02X UNDEFINED", GetMem(addr++)); sprintf(chr, "%02X UNDEFINED", GetMem(addr++));
line.append(chr); line.append(chr);
} else }
else
{ {
if ((addr + size) > 0xFFFF) if ((addr + size) > 0xFFFF)
{ {
@ -2113,6 +2114,7 @@ void QAsmView::updateAssemblyView(void)
sprintf(chr, "%02X OVERFLOW\n", GetMem(addr++)); sprintf(chr, "%02X OVERFLOW\n", GetMem(addr++));
line.append(chr); line.append(chr);
} }
delete a;
break; break;
} }
for (int j = 0; j < size; j++) for (int j = 0; j < size; j++)