diff options
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(); |