diff options
Diffstat (limited to 'src/gui/fonts/font.cpp')
-rw-r--r-- | src/gui/fonts/font.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index 58528f383..6ba7a2ffb 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -392,6 +392,8 @@ void Font::generate(TextChunk &chunk) //search.erase(key); cache->remove(chunk2); chunk.img = chunk2->img; + chunk2->img = nullptr; + delete chunk2; // logger->log("cached image: " + chunk.text); } else |