forked from qt-creator/qt-creator
Fix crash on removing null ITextMark
Previously that did no harm, but due to recent changes this leads to a crash. Task-number: QTCREATORBUG-7270 Task-number: QTCREATORBUG-7269 Change-Id: Ibe405e33c8ae4cc8503c67fa122467332bc10f53 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -202,7 +202,8 @@ void DisassemblerAgent::resetLocation()
|
||||
return;
|
||||
if (d->resetLocationScheduled) {
|
||||
d->resetLocationScheduled = false;
|
||||
d->editor->markableInterface()->removeMark(d->locationMark);
|
||||
if (d->locationMark)
|
||||
d->editor->markableInterface()->removeMark(d->locationMark);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user