mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Fixed a small memory leak in the application updater
This commit is contained in:
parent
36fd1817e2
commit
5120f8b440
|
@ -59,8 +59,11 @@ ApplicationUpdater::~ApplicationUpdater()
|
|||
{
|
||||
// This is needed if getResults() was never called.
|
||||
mApplicationShutdown = true;
|
||||
|
||||
if (mThread)
|
||||
mThread->join();
|
||||
|
||||
HttpReq::cleanupCurlMulti();
|
||||
}
|
||||
|
||||
ApplicationUpdater& ApplicationUpdater::getInstance()
|
||||
|
@ -187,6 +190,7 @@ void ApplicationUpdater::update()
|
|||
HttpReq::Status reqStatus {mRequest->status()};
|
||||
if (reqStatus == HttpReq::REQ_SUCCESS) {
|
||||
mStatus = ASYNC_DONE;
|
||||
HttpReq::cleanupCurlMulti();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -227,6 +227,8 @@ GuiApplicationUpdater::~GuiApplicationUpdater()
|
|||
|
||||
if (mThread)
|
||||
mThread->join();
|
||||
|
||||
HttpReq::cleanupCurlMulti();
|
||||
}
|
||||
|
||||
void GuiApplicationUpdater::setDownloadPath()
|
||||
|
|
Loading…
Reference in a new issue