diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-06 23:52:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-06 23:52:30 +0300 |
commit | 3a0168024b54cba43fb814b6ced0aad09917ea5d (patch) | |
tree | 7ba1b8caf1c209de6ec81485de82f1e9ffbbf13c /src/gui/outfitwindow.cpp | |
parent | c0793c747565b10ece4574221268eb623e12995e (diff) | |
download | mv-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.gz mv-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.bz2 mv-3a0168024b54cba43fb814b6ced0aad09917ea5d.tar.xz mv-3a0168024b54cba43fb814b6ced0aad09917ea5d.zip |
Fix leak in outfit window.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 3 |
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) |