aboutsummaryrefslogtreecommitdiff
path: root/src/client/client.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2022-05-04 20:55:13 +0200
committerGitHub <noreply@github.com>2022-05-04 20:55:13 +0200
commit3ce5a68cd12e45d7b618c49e205936fb140ecbfe (patch)
tree22e234febf709749b06056292ef6784fbcd28534 /src/client/client.cpp
parent0704ca055059088bdd53e15be672e6b5663b8f50 (diff)
downloadminetest-3ce5a68cd12e45d7b618c49e205936fb140ecbfe.tar.gz
minetest-3ce5a68cd12e45d7b618c49e205936fb140ecbfe.tar.bz2
minetest-3ce5a68cd12e45d7b618c49e205936fb140ecbfe.zip
guiScalingFilter: Fix most memory leaks (#12256)
Calls to the cache function ended up creating a new texture regardless whether the texture is already cached.
Diffstat (limited to 'src/client/client.cpp')
-rw-r--r--src/client/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 0a1fc73d1..cb556c1ce 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -334,6 +334,8 @@ Client::~Client()
// cleanup 3d model meshes on client shutdown
m_rendering_engine->cleanupMeshCache();
+ guiScalingCacheClear();
+
delete m_minimap;
m_minimap = nullptr;