summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp8
1 files changed, 8 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();
+ }
}