From 54ffc4e915fcdb6f6e7556bc2d1f8b27fd567d9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Blot?= Date: Wed, 5 Apr 2017 12:30:52 +0200 Subject: [PATCH] Memleak fix: LocalPlayer object was not deleted Delete LocalPlayer when ClientEnvironment (object owner) is destroyed --- src/clientenvironment.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clientenvironment.cpp b/src/clientenvironment.cpp index 29ecd2dfe..94c8e0dcb 100644 --- a/src/clientenvironment.cpp +++ b/src/clientenvironment.cpp @@ -66,6 +66,8 @@ ClientEnvironment::~ClientEnvironment() // Drop/delete map m_map->drop(); + + delete m_local_player; } Map & ClientEnvironment::getMap() -- 2.25.1