fix a few memory leaks

This commit is contained in:
tobtoht
2024-10-01 05:47:57 +02:00
parent 37aa04e3e5
commit c31b351b17
9 changed files with 31 additions and 19 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ PageSetSubaddressLookahead::PageSetSubaddressLookahead(WizardFields *fields, QWi
{
ui->setupUi(this);
auto *indexValidator = new QRegularExpressionValidator{QRegularExpression("[0-9]{0,5}")};
auto *indexValidator = new QRegularExpressionValidator{QRegularExpression("[0-9]{0,5}"), this};
ui->line_major->setValidator(indexValidator);
connect(ui->line_major, &QLineEdit::textChanged, [this]{