mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Settings: semi-automatic callback cleanup
This commit is contained in:
@@ -68,8 +68,7 @@ FontEngine::FontEngine(gui::IGUIEnvironment* env) :
|
||||
/******************************************************************************/
|
||||
FontEngine::~FontEngine()
|
||||
{
|
||||
for (auto name : settings)
|
||||
g_settings->deregisterChangedCallback(name, font_setting_changed, this);
|
||||
g_settings->deregisterAllChangedCallbacks(this);
|
||||
|
||||
cleanCache();
|
||||
}
|
||||
|
Reference in New Issue
Block a user