diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-04 15:37:39 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-04 15:37:39 -0700 |
commit | 0bc83fbba9c8b5f2677b8183f16dd95645f3e998 (patch) | |
tree | 7b9dfae848db0677d48c31aa56816aa5706d71e8 /src/gui | |
parent | f025d7798f1b280c15f44919878c926d2b10c2b7 (diff) | |
download | mana-0bc83fbba9c8b5f2677b8183f16dd95645f3e998.tar.gz mana-0bc83fbba9c8b5f2677b8183f16dd95645f3e998.tar.bz2 mana-0bc83fbba9c8b5f2677b8183f16dd95645f3e998.tar.xz mana-0bc83fbba9c8b5f2677b8183f16dd95645f3e998.zip |
A few more pointers which weren't getting deleted.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 12 | ||||
-rw-r--r-- | src/gui/inventorywindow.h | 5 | ||||
-rw-r--r-- | src/gui/itemcontainer.cpp | 1 | ||||
-rw-r--r-- | src/gui/itemshortcutcontainer.cpp | 1 |
4 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 246219f4..a3572d4f 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -105,6 +105,18 @@ InventoryWindow::InventoryWindow(int invSize): setLocationRelativeTo(getParent()); } +InventoryWindow::~InventoryWindow() +{ + delete mWeightBar; + delete mSlotsBar; + delete mUseButton; + delete mDropButton; + delete mItems; + delete mWeightLabel; + delete mSlotsLabel; + delete mInvenScroll; +} + void InventoryWindow::logic() { Window::logic(); diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 2694e90b..78d30461 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -49,6 +49,11 @@ class InventoryWindow : public Window, gcn::ActionListener, InventoryWindow(int invSize = (INVENTORY_SIZE - 2)); /** + * Destructor. + */ + ~InventoryWindow(); + + /** * Logic (updates buttons and weight information). */ void logic(); diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index e655d3fc..5693d001 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -66,6 +66,7 @@ ItemContainer::ItemContainer(Inventory *inventory, int offset): ItemContainer::~ItemContainer() { mSelImg->decRef(); + delete mItemPopup; } void ItemContainer::logic() diff --git a/src/gui/itemshortcutcontainer.cpp b/src/gui/itemshortcutcontainer.cpp index ecadd0e4..e152b03d 100644 --- a/src/gui/itemshortcutcontainer.cpp +++ b/src/gui/itemshortcutcontainer.cpp @@ -62,6 +62,7 @@ ItemShortcutContainer::ItemShortcutContainer(): ItemShortcutContainer::~ItemShortcutContainer() { mBackgroundImg->decRef(); + delete mItemPopup; } void ItemShortcutContainer::logic() |