summaryrefslogtreecommitdiff
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
parent72278cfec112e06b50ba06185fb59a2ce390d955 (diff)
downloadmana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.gz
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.bz2
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.tar.xz
mana-1b44c6d73784c0f222c3d1f09214936acb5561f7.zip
Fix some memory problems
-rw-r--r--src/gui/chat.cpp1
-rw-r--r--src/gui/popupmenu.cpp1
-rw-r--r--src/resources/monsterinfo.cpp1
3 files changed, 3 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);
diff --git a/src/resources/monsterinfo.cpp b/src/resources/monsterinfo.cpp
index 06a6d3b6..91f5aea8 100644
--- a/src/resources/monsterinfo.cpp
+++ b/src/resources/monsterinfo.cpp
@@ -31,6 +31,7 @@ MonsterInfo::~MonsterInfo()
{
// kill vectors in mSoundEffects
delete_all(mSounds);
+ delete_all(mMonsterAttacks);
mSounds.clear();
}