summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-15 14:34:08 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-15 14:34:08 -0600
commit1b44c6d73784c0f222c3d1f09214936acb5561f7 (patch)
tree15891c17cf1a8285dfbbf71b14052345b4ab89c6 /src/gui
parent72278cfec112e06b50ba06185fb59a2ce390d955 (diff)
downloadmana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.gz
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.bz2
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.xz
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.zip
Fix some memory problems
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chat.cpp1
-rw-r--r--src/gui/popupmenu.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 46611b78..7ad727ff 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -70,6 +70,7 @@ class ChatInput : public TextField, public gcn::FocusListener
ChatWindow::ChatWindow():
Window(_("Chat")),
+ mCurrentTab(NULL),
mTmpVisible(false)
{
setWindowName("Chat");
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 5142482f..a78e620d 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -55,6 +55,7 @@ PopupMenu::PopupMenu():
mFloorItem(NULL),
mItem(NULL)
{
+ setDefaultSize(0, 0, 0, 0);
setResizable(false);
setTitleBarHeight(0);
setShowTitle(false);