1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix memory leak detected by address sanitizer (#10896)

This commit is contained in:
k.h.lai 2021-02-03 03:56:24 +08:00 committed by GitHub
parent f227e40180
commit 2072afb72b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

@ -153,7 +153,7 @@ RenderingEngine::RenderingEngine(IEventReceiver *receiver)
RenderingEngine::~RenderingEngine()
{
core.reset();
m_device->drop();
m_device->closeDevice();
s_singleton = nullptr;
}