summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp
index aa512207e..f3d904059 100644
--- a/src/gui/sdlfont.cpp
+++ b/src/gui/sdlfont.cpp
@@ -55,6 +55,7 @@ class SDLTextChunk final
{
}
+
~SDLTextChunk()
{
delete img;
@@ -159,6 +160,7 @@ typedef std::list<SDLTextChunk>::iterator CacheIterator;
static int fontCounter;
SDLFont::SDLFont(std::string filename, const int size, const int style) :
+ mFont(nullptr),
mCreateCounter(0),
mDeleteCounter(0),
mCleanTime(cur_time + CLEAN_TIME)