diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actorsprite.cpp | 2 |
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(); } } |