mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Defer closing logger instance
So that logger can still be used in shutdown stage.
This commit is contained in:
parent
af78344e5d
commit
e3425cfa9e
1 changed files with 3 additions and 2 deletions
|
@ -850,12 +850,13 @@ void Application::cleanup()
|
||||||
Net::ProxyConfigurationManager::freeInstance();
|
Net::ProxyConfigurationManager::freeInstance();
|
||||||
Preferences::freeInstance();
|
Preferences::freeInstance();
|
||||||
SettingsStorage::freeInstance();
|
SettingsStorage::freeInstance();
|
||||||
delete m_fileLogger;
|
|
||||||
Logger::freeInstance();
|
|
||||||
IconProvider::freeInstance();
|
IconProvider::freeInstance();
|
||||||
SearchPluginManager::freeInstance();
|
SearchPluginManager::freeInstance();
|
||||||
Utils::Fs::removeDirRecursively(Utils::Fs::tempPath());
|
Utils::Fs::removeDirRecursively(Utils::Fs::tempPath());
|
||||||
|
|
||||||
|
Logger::freeInstance();
|
||||||
|
delete m_fileLogger;
|
||||||
|
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
if (m_window)
|
if (m_window)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue