diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2013-11-17 23:40:36 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2013-11-17 23:43:20 +0100 |
commit | 1e5d35be7c17de3fee9155b754aa55f6ed92ee62 (patch) | |
tree | cf4c18e708526ebf5670c517e33bf931136c891d /src/application.cpp | |
parent | rekonq 2.4.0 (diff) | |
download | rekonq-1e5d35be7c17de3fee9155b754aa55f6ed92ee62.tar.xz |
Get sure webkit objects are deleted in the app d-tor
CCBUG: 321557
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/application.cpp b/src/application.cpp index a6d7288d..bec02687 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2012 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2012-2013 by Andrea Diamantini <adjam7 at gmail dot com> * * * This program is free software; you can redistribute it and/or @@ -108,6 +108,19 @@ Application::~Application() delete m_activityConsumer; #endif + // Destroy all windows... + Q_FOREACH(QWeakPointer<RekonqWindow> pointer, m_rekonqWindows) + { + delete pointer.data(); + pointer.clear(); + } + + // Destroy all web apps + Q_FOREACH(WebTab *tab, m_webApps) + { + delete tab; + } + kDebug() << "Bye bye (k)baby..."; } |