Instantiate SearchPluginManager with other application components

This commit is contained in:
Thomas Piccirello
2018-03-08 01:10:53 -05:00
committed by sledgehammer999
parent 7d98c34e17
commit 0fda919268
2 changed files with 4 additions and 2 deletions

View File

@@ -72,6 +72,7 @@
#include "base/rss/rss_autodownloader.h"
#include "base/rss/rss_session.h"
#include "base/scanfoldersmodel.h"
#include "base/search/searchpluginmanager.h"
#include "base/settingsstorage.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
@@ -514,6 +515,7 @@ int Application::exec(const QStringList &params)
new RSS::Session; // create RSS::Session singleton
new RSS::AutoDownloader; // create RSS::AutoDownloader singleton
new SearchPluginManager;
#ifdef DISABLE_GUI
#ifndef DISABLE_WEBUI
@@ -708,6 +710,7 @@ void Application::cleanup()
delete m_webui;
#endif
delete SearchPluginManager::instance();
delete RSS::AutoDownloader::instance();
delete RSS::Session::instance();