aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2014-11-30 23:21:14 +0100
committerKahrl <kahrl@gmx.net>2014-11-30 23:21:14 +0100
commit16781da4f97af2704cae3a5534bd1a80db2d74c4 (patch)
tree0689d2af8c463bb3e7f2d4c8d9ce8a00991b89ce
parent175b7a28e5f82bd6da9f4c3e22ce6493c05f4f09 (diff)
downloadminetest-16781da4f97af2704cae3a5534bd1a80db2d74c4.tar.gz
minetest-16781da4f97af2704cae3a5534bd1a80db2d74c4.tar.bz2
minetest-16781da4f97af2704cae3a5534bd1a80db2d74c4.zip
Fix segfault at exit caused by non grabbed font
-rw-r--r--src/fontengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fontengine.cpp b/src/fontengine.cpp
index f73f47ff7..e6564854d 100644
--- a/src/fontengine.cpp
+++ b/src/fontengine.cpp
@@ -456,6 +456,7 @@ void FontEngine::initSimpleFont(unsigned int basesize, FontMode mode)
}
if (font != NULL) {
+ font->grab();
m_font_cache[mode][basesize] = font;
}
}