summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-08 21:07:37 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-04-08 21:07:37 +0200
commit20ec47a6504f5ebed9a4986e3d004f3445e3f987 (patch)
treeae2e09df03de12a758940d780749ed0e00b93db5
parentc8aa91aca12d5f6386c20da1526de390ff523ce7 (diff)
downloadmana-20ec47a6504f5ebed9a4986e3d004f3445e3f987.tar.gz
mana-20ec47a6504f5ebed9a4986e3d004f3445e3f987.tar.bz2
mana-20ec47a6504f5ebed9a4986e3d004f3445e3f987.tar.xz
mana-20ec47a6504f5ebed9a4986e3d004f3445e3f987.zip
Fixed assertion failure on exit
Regression introduced in 14dc8218eeebd1583e6bd3c49013b3e501f47228.
-rw-r--r--src/resources/emotedb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp
index b0536a0e..a7130d58 100644
--- a/src/resources/emotedb.cpp
+++ b/src/resources/emotedb.cpp
@@ -110,6 +110,10 @@ void EmoteDB::unload()
emote.sprite->releaseImageRef();
mEmotes.clear();
+
+ if (mUnknown.sprite)
+ mUnknown.sprite->releaseImageRef();
+
mLoaded = false;
}