1
0
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:
SmallJoker
2022-05-04 20:55:13 +02:00
committed by GitHub
parent 0704ca0550
commit 3ce5a68cd1
2 changed files with 11 additions and 3 deletions

View File

@@ -334,6 +334,8 @@ Client::~Client()
// cleanup 3d model meshes on client shutdown
m_rendering_engine->cleanupMeshCache();
guiScalingCacheClear();
delete m_minimap;
m_minimap = nullptr;