mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 08:08:47 -05:00
Fix segfault at exit caused by non grabbed font
This commit is contained in:
parent
175b7a28e5
commit
16781da4f9
@ -456,6 +456,7 @@ void FontEngine::initSimpleFont(unsigned int basesize, FontMode mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (font != NULL) {
|
if (font != NULL) {
|
||||||
|
font->grab();
|
||||||
m_font_cache[mode][basesize] = font;
|
m_font_cache[mode][basesize] = font;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user