summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2015-11-04 10:59:10 (GMT)
committerDavid Rosca <nowrep@gmail.com>2015-11-04 11:16:08 (GMT)
commitc793fb2703bbeaf2847663013b62850fe6d970d3 (patch)
tree549e54a12e1b514f547b3bc2896f91b6e27426be
parent6fdc6e22a955d160690ed9ebd0230d0247bef9a5 (diff)
Fix crash on close
Delete m_tabwidget in destructor REVIEW: 125890
-rw-r--r--shell/shell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/shell.cpp b/shell/shell.cpp
index ce5e76c..339c14d 100644
--- a/shell/shell.cpp
+++ b/shell/shell.cpp
@@ -159,6 +159,8 @@ Shell::~Shell()
}
if (m_unique)
QDBusConnection::sessionBus().unregisterService(QStringLiteral("org.kde.okular"));
+
+ delete m_tabWidget;
}
// Open a new document if we have space for it