Fixed small memory leak in Qt debugger asm viewer.
This commit is contained in:
parent
867ad36a2d
commit
5ec2c5efdc
|
@ -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++)
|
||||||
|
|
Loading…
Reference in New Issue