aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authork.h.lai <dlshcbmuipmam@hotmail.com>2021-02-03 03:56:24 +0800
committerGitHub <noreply@github.com>2021-02-02 20:56:24 +0100
commit2072afb72b4b3e9c5dcbcec71d824aeae1b35d19 (patch)
tree6ec9801012d207a746f4df8a6e0d157919720898 /src/client
parentf227e40180b2035f33059749b14287478bab374a (diff)
downloadminetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.tar.gz
minetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.tar.bz2
minetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.zip
Fix memory leak detected by address sanitizer (#10896)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/renderingengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp
index f5aca8f58..99ff8c1ee 100644
--- a/src/client/renderingengine.cpp
+++ b/src/client/renderingengine.cpp
@@ -153,7 +153,7 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
RenderingEngine::~RenderingEngine()
{
core.reset();
- m_device->drop();
+ m_device->closeDevice();
s_singleton = nullptr;
}