Fix null deref crash in comments

This commit is contained in:
pancake 2017-04-03 01:03:05 +02:00
parent 24256f239d
commit 4a49acc2f2

View File

@ -1091,7 +1091,9 @@ void MemoryWidget::on_actionDisasAdd_comment_triggered()
// Rename function in r2 core // Rename function in r2 core
this->main->core->setComment(ele, comment); this->main->core->setComment(ele, comment);
// Seek to new renamed function // Seek to new renamed function
if (fcn) {
this->main->seek(fcn->name); this->main->seek(fcn->name);
}
// TODO: Refresh functions tree widget // TODO: Refresh functions tree widget
} }
} }