Fix crash in StringsWidget::on_actionX_refs_triggered. (#1450)

Qt::WA_DeleteOnClose is set for a dialog that is allocated on the stack. This
causes Qt to attempt to delete the object when the XrefsDialog calls its close
method.
This commit is contained in:
Jim Broadus 2019-04-11 22:43:12 -07:00 committed by Itay Cohen
parent c6866df71e
commit 2fee3dabfb

View File

@ -273,7 +273,6 @@ void StringsWidget::on_actionX_refs_triggered()
XrefsDialog x(nullptr);
x.fillRefsForAddress(str.vaddr, RAddressString(str.vaddr), false);
x.setAttribute(Qt::WA_DeleteOnClose);
x.exec();
}