diff options
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index a5c70632..d571f739 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -32,6 +32,7 @@ ItemContainer::ItemContainer() Image *itemImg = resman->getImage("graphics/sprites/items.png", IMG_ALPHA); if (!itemImg) logger->error("Unable to load items.png"); itemset = new Spriteset(itemImg, 20, 20); + itemImg->decRef(); selImg = resman->getImage("graphics/gui/selection.png", IMG_ALPHA); if (!selImg) logger->error("Unable to load selection.png"); @@ -50,6 +51,8 @@ ItemContainer::ItemContainer() ItemContainer::~ItemContainer() { + delete itemset; + selImg->decRef(); } void ItemContainer::draw(gcn::Graphics* graphics) |