summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index 4b1772d8..d2221255 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -64,7 +64,9 @@ ChatTab::ChatTab(const std::string &name) : Tab()
ChatTab::~ChatTab()
{
- chatWindow->removeTab(this);
+ if (chatWindow)
+ chatWindow->removeTab(this);
+
delete mTextOutput;
delete mScrollArea;
}