From b3b35f70d35160047711b394212e78bda5f3bce0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Jul 2012 01:39:17 +0300 Subject: Fix leak in actorsprite. --- src/actorsprite.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index b78f6bb91..e5d0cd288 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -368,6 +368,8 @@ void ActorSprite::setupSpriteDisplay(const SpriteDisplay &display, img = Theme::getImageFromTheme("unknown-item.png"); addSprite(new ImageSprite(img)); + if (img) + img->decRef(); } } -- cgit v1.2.3-70-g09d2