summaryrefslogtreecommitdiff
path: root/src/gui/widgets/whispertab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-07-16 23:34:17 +0300
committerJared Adams <jaxad0127@gmail.com>2010-07-16 15:45:32 -0600
commit04e4f0da4b6242f39d09794edad394587ddea620 (patch)
tree773e528d78763410242c790b2782e728bd127fa0 /src/gui/widgets/whispertab.cpp
parentabde0f51b3062c158fb52e9dfff23d21d3be03d1 (diff)
downloadmana-04e4f0da4b6242f39d09794edad394587ddea620.tar.gz
mana-04e4f0da4b6242f39d09794edad394587ddea620.tar.bz2
mana-04e4f0da4b6242f39d09794edad394587ddea620.tar.xz
mana-04e4f0da4b6242f39d09794edad394587ddea620.zip
Fix memory corruption in chat on exit.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r--src/gui/widgets/whispertab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index 858a2e6b..7542e251 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -41,7 +41,8 @@ WhisperTab::WhisperTab(const std::string &nick) :
WhisperTab::~WhisperTab()
{
- chatWindow->removeWhisper(mNick);
+ if (chatWindow)
+ chatWindow->removeWhisper(mNick);
}
void WhisperTab::handleInput(const std::string &msg)