mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
guiScalingFilter: Fix most memory leaks (#12256)
Calls to the cache function ended up creating a new texture regardless whether the texture is already cached.
This commit is contained in:
@@ -334,6 +334,8 @@ Client::~Client()
|
||||
// cleanup 3d model meshes on client shutdown
|
||||
m_rendering_engine->cleanupMeshCache();
|
||||
|
||||
guiScalingCacheClear();
|
||||
|
||||
delete m_minimap;
|
||||
m_minimap = nullptr;
|
||||
|
||||
|
Reference in New Issue
Block a user