mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix segfault at exit caused by non grabbed font
This commit is contained in:
@@ -456,6 +456,7 @@ void FontEngine::initSimpleFont(unsigned int basesize, FontMode mode)
|
||||
}
|
||||
|
||||
if (font != NULL) {
|
||||
font->grab();
|
||||
m_font_cache[mode][basesize] = font;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user