summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-06 23:52:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-06 23:52:30 +0300
commit3a0168024b54cba43fb814b6ced0aad09917ea5d (patch)
tree7ba1b8caf1c209de6ec81485de82f1e9ffbbf13c /src
parentc0793c747565b10ece4574221268eb623e12995e (diff)
downloadmanaverse-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.gz
manaverse-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.bz2
manaverse-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.xz
manaverse-3a0168024b54cba43fb814b6ced0aad09917ea5d.zip
Fix leak in outfit window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/outfitwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index f01d74984..eaf511a17 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -339,7 +339,10 @@ void OutfitWindow::draw(gcn::Graphics *graphics)
Image *image = Item::getImage(mItems[mCurrentOutfit][i],
mItemColors[mCurrentOutfit][i]);
if (image)
+ {
g->drawImage(image, itemX, itemY);
+ image->decRef();
+ }
}
}
if (mItemMoved)