From 20ec47a6504f5ebed9a4986e3d004f3445e3f987 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 8 Apr 2024 21:07:37 +0200 Subject: Fixed assertion failure on exit Regression introduced in 14dc8218eeebd1583e6bd3c49013b3e501f47228. --- src/resources/emotedb.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3-70-g09d2