Commit e48e185d authored by Daniel Teske's avatar Daniel Teske Committed by hjk

DisassemblerView: Correctly delete breakpoint marks

Change-Id: Id3e92420bab5d010ff8c3cf711f321855c0bf5ee
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent ed3f6e6d
......@@ -138,6 +138,7 @@ DisassemblerAgentPrivate::~DisassemblerAgentPrivate()
}
editor = 0;
delete locationMark;
qDeleteAll(breakpointMarks);
}
DisassemblerLines DisassemblerAgentPrivate::contentsAtCurrentLocation() const
......@@ -383,6 +384,7 @@ void DisassemblerAgent::updateBreakpointMarkers()
const DisassemblerLines contents = d->contentsAtCurrentLocation();
foreach (TextEditor::ITextMark *marker, d->breakpointMarks)
d->editor->markableInterface()->removeMark(marker);
qDeleteAll(d->breakpointMarks);
d->breakpointMarks.clear();
foreach (BreakpointModelId id, ids) {
const quint64 address = handler->response(id).address;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment