diff options
-rw-r--r-- | src/application.cpp | 8 | ||||
-rw-r--r-- | src/application.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp index 311c90a2..c00f3f96 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -126,6 +126,14 @@ Application::~Application() m_adblockManager.clear(); } + // TODO: + // add a check to NOT close rekonq + // until last download is finished + + if (!m_downloadManager.isNull()) { + delete m_adblockManager.data(); + m_adblockManager.clear(); + } } diff --git a/src/application.h b/src/application.h index f56c36ac..ec377a71 100644 --- a/src/application.h +++ b/src/application.h @@ -79,6 +79,7 @@ class REKONQ_TESTS_EXPORT Application : public KUniqueApplication public: Application(); ~Application(); + int newInstance(); static Application *instance(); |