summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)