diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-23 23:47:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-23 23:47:32 +0000 |
commit | 7ca971f04907031b80ffbcb159e5af2f595e3af8 (patch) | |
tree | c7f0f210325acb35f63071797407d266ba7e9e35 /src/gui/chat.cpp | |
parent | c3d7827d18b725d2dff94e08a17474d607bb43dd (diff) | |
download | mana-client-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.gz mana-client-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.bz2 mana-client-7ca971f04907031b80ffbcb159e5af2f595e3af8.tar.xz mana-client-7ca971f04907031b80ffbcb159e5af2f595e3af8.zip |
Merged most of the changes in biggeruniverse's second memory cleanup patch.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index ab654440..be06a14a 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -47,11 +47,11 @@ ChatWindow::ChatWindow(const std::string &logfile): setContentSize(600, 100); setResizable(true); - + chatInput = new ChatInput(); chatInput->setEventId("chatinput"); chatInput->addActionListener(this); - + textOutput = new BrowserBox(BrowserBox::AUTO_WRAP); textOutput->setOpaque(false); textOutput->disableLinksAndUserColors(); @@ -73,6 +73,8 @@ ChatWindow::ChatWindow(const std::string &logfile): ChatWindow::~ChatWindow() { delete chatInput; + delete textOutput; + delete scrollArea; chatlog_file.flush(); chatlog_file.close(); |