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
commit 7cb32a3680

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->setObjectName("Download Thread");
m_thread->setParent(this);
m_thread->start(); m_thread->start();
} }