Qt: set parent for QThread

This may or may not have caused a leak
This commit is contained in:
Megamouse 2021-02-27 22:37:01 +01:00 committed by Ivan
parent a4d4ab1df9
commit 7cb32a3680
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ void downloader::start(const std::string& url, bool follow_location, bool show_p
}
m_thread->setObjectName("Download Thread");
m_thread->setParent(this);
m_thread->start();
}