mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-09 11:52:21 +08:00
fix: 修复api重复申请内存的泄漏
This commit is contained in:
parent
e645c5e526
commit
0544761094
@ -53,6 +53,7 @@ void AppListPage::getAppList(QString type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui->webEngineView->setUrl(url);
|
ui->webEngineView->setUrl(url);
|
||||||
|
delete api;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppListPage::getSearchList(QString keyword)
|
void AppListPage::getSearchList(QString keyword)
|
||||||
@ -72,6 +73,7 @@ void AppListPage::getSearchList(QString keyword)
|
|||||||
}
|
}
|
||||||
url = api->getServerUrl() + "store/#/flamescion/search?keywords=" + keyword + "&" + theme;
|
url = api->getServerUrl() + "store/#/flamescion/search?keywords=" + keyword + "&" + theme;
|
||||||
ui->webEngineView->setUrl(url);
|
ui->webEngineView->setUrl(url);
|
||||||
|
delete api;
|
||||||
}
|
}
|
||||||
|
|
||||||
AppListPage::~AppListPage()
|
AppListPage::~AppListPage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user