diff options
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..."; } |