1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;