summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}
}