内存错误调完了

This commit is contained in:
Mike Solar
2023-07-30 13:57:54 +08:00
parent 0483fe84f9
commit 6255beecea
9 changed files with 55 additions and 45 deletions

View File

@ -11,6 +11,7 @@ MainWindowLayout::MainWindowLayout(QWidget *parent) :
QWidget(parent), ui(new Ui::MainWindowLayout) {
ui->setupUi(this);
layout=new QVBoxLayout(this);
mainWindowLayout = this;
ConfigRequest *configRequest = new ConfigRequest;
ConfigResponse *configResponse = new ConfigResponse;
configRequest->sendRequest(configResponse);
@ -26,7 +27,7 @@ MainWindowLayout::MainWindowLayout(QWidget *parent) :
MainWindowLayout::~MainWindowLayout() {
delete[] list[0];
//delete[] list[0];
delete navBar;
//delete layout;
delete ui;