From 2fee3dabfbb9da070a832ca2479a498841f2c206 Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Thu, 11 Apr 2019 22:43:12 -0700 Subject: [PATCH] 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. --- src/widgets/StringsWidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/StringsWidget.cpp b/src/widgets/StringsWidget.cpp index 73a32402..716fcf6b 100644 --- a/src/widgets/StringsWidget.cpp +++ b/src/widgets/StringsWidget.cpp @@ -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(); }