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:
parent
0704ca0550
commit
3ce5a68cd1
2 changed files with 11 additions and 3 deletions
|
@ -334,6 +334,8 @@ Client::~Client()
|
|||
// cleanup 3d model meshes on client shutdown
|
||||
m_rendering_engine->cleanupMeshCache();
|
||||
|
||||
guiScalingCacheClear();
|
||||
|
||||
delete m_minimap;
|
||||
m_minimap = nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue