Skip to content

Commit f1a35cc

Browse files
committed
Fixed double free in StandardOuputWidget
Signed-off-by: Jared Duffey <jared.duffey@bluequartz.net>
1 parent 3a68796 commit f1a35cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/SVWidgetsLib/Widgets/StandardOutputWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ void StandardOutputWidget::clearLog()
167167
msgBox.addButton(QMessageBox::No);
168168
msgBox.addButton(QMessageBox::Yes);
169169
msgBox.setDefaultButton(QMessageBox::No);
170+
// Takes ownership
170171
msgBox.setCheckBox(cb);
171172

172173
answer = msgBox.exec();
173174

174175
displayDialog = !cb->isChecked();
175-
delete cb;
176176

177177
prefs->setValue("DisplayClearMessageBox", displayDialog);
178178
}

0 commit comments

Comments
 (0)