1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-26 05:15:27 +01:00

Settings: semi-automatic callback cleanup

This commit is contained in:
SmallJoker
2024-10-12 22:51:50 +02:00
committed by SmallJoker
parent 9f43018df2
commit e3813cf027
11 changed files with 25 additions and 78 deletions

View File

@@ -238,8 +238,7 @@ RenderingEngine::~RenderingEngine()
{
sanity_check(s_singleton == this);
g_settings->deregisterChangedCallback("fullscreen", settingChangedCallback, this);
g_settings->deregisterChangedCallback("window_maximized", settingChangedCallback, this);
g_settings->deregisterAllChangedCallbacks(this);
core.reset();
m_device->closeDevice();