mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Settings: semi-automatic callback cleanup
This commit is contained in:
parent
9f43018df2
commit
e3813cf027
11 changed files with 25 additions and 78 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue