diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-07-16 23:34:17 +0300 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-07-16 15:45:32 -0600 |
commit | 04e4f0da4b6242f39d09794edad394587ddea620 (patch) | |
tree | 773e528d78763410242c790b2782e728bd127fa0 /src/gui/widgets | |
parent | abde0f51b3062c158fb52e9dfff23d21d3be03d1 (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 3 |
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) |