summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-01-20 02:27:55 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-01-20 02:27:55 +0100
commit48d949fb77c1d932c93448f06d59ea70f852589b (patch)
tree4de604e3a196e13d51894e7b1a787992333c6696 /src/application.cpp
parentfix close tab when javascript:self.close() (diff)
downloadrekonq-48d949fb77c1d932c93448f06d59ea70f852589b.tar.xz
Some leaks fixed in new code
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp
index e06f6f15..98579cf0 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -68,7 +68,7 @@ QPointer<AdBlockManager> Application::s_adblockManager;
Application::Application()
- : KUniqueApplication()
+ : KUniqueApplication()
{
}
@@ -76,8 +76,11 @@ Application::Application()
Application::~Application()
{
qDeleteAll(m_mainWindows);
+
delete s_bookmarkProvider;
delete s_historyManager;
+ delete s_sessionManager;
+ delete s_adblockManager;
}
@@ -340,7 +343,7 @@ void Application::loadUrl(const QString& urlString, const Rekonq::OpenType& typ
MainWindow *Application::newMainWindow()
{
MainWindow *w = new MainWindow();
- w->mainView()->newWebTab(); // remember using newWebView and NOT newTab here!!
+ w->mainView()->newWebTab(); // remember using newWebTab and NOT newTab here!!
m_mainWindows.prepend(w);
w->show();
@@ -361,7 +364,6 @@ MainWindowList Application::mainWindowList()
}
-
AdBlockManager *Application::adblockManager()
{
if(!s_adblockManager)
@@ -370,4 +372,3 @@ AdBlockManager *Application::adblockManager()
}
return s_adblockManager;
}
-