mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 16:03:43 +00:00
Fix valgrind issues
This commit is contained in:
parent
1c6a1ab6fd
commit
75f4ee245f
16 changed files with 70 additions and 8 deletions
|
|
@ -58,6 +58,9 @@ void Math::TimeGate::edit()
|
|||
auto d = new QDialog();
|
||||
auto ui = new Ui::TimeGateDialog();
|
||||
ui->setupUi(d);
|
||||
connect(d, &QDialog::finished, [=](){
|
||||
delete ui;
|
||||
});
|
||||
ui->graph->setGate(this);
|
||||
ui->windowBox->setLayout(new QVBoxLayout);
|
||||
ui->windowBox->layout()->addWidget(window.createEditor());
|
||||
|
|
@ -113,6 +116,9 @@ QWidget *Math::TimeGate::createExplanationWidget()
|
|||
auto w = new QWidget();
|
||||
auto ui = new Ui::TimeGateExplanationWidget;
|
||||
ui->setupUi(w);
|
||||
connect(w, &QWidget::destroyed, [=](){
|
||||
delete ui;
|
||||
});
|
||||
return w;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue