fix: 修复api重复申请内存的泄漏

This commit is contained in:
uniartisan 2022-12-26 19:05:07 +08:00
parent e645c5e526
commit 0544761094

@ -53,6 +53,7 @@ void AppListPage::getAppList(QString type)
}
ui->webEngineView->setUrl(url);
delete api;
}
void AppListPage::getSearchList(QString keyword)
@ -72,6 +73,7 @@ void AppListPage::getSearchList(QString keyword)
}
url = api->getServerUrl() + "store/#/flamescion/search?keywords=" + keyword + "&" + theme;
ui->webEngineView->setUrl(url);
delete api;
}
AppListPage::~AppListPage()