summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-02 23:33:18 +0200
committersapier <Sapier at GMX dot net>2014-07-02 23:33:18 +0200
commitb8343cd11c834fb2613b104418ed08e9fdb1665a (patch)
tree27194eb00fb695367fcd5cb0e281639bf75a48b1 /src/player.cpp
parent3d6d66b181b894180164aa34aab7b2029bef1bf4 (diff)
downloadminetest-b8343cd11c834fb2613b104418ed08e9fdb1665a.tar.gz
minetest-b8343cd11c834fb2613b104418ed08e9fdb1665a.tar.bz2
minetest-b8343cd11c834fb2613b104418ed08e9fdb1665a.zip
Fix memory leaks in GenericCAO, ShaderSource and Player classes
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp
index f2ff59027..40d403952 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -100,6 +100,7 @@ Player::Player(IGameDef *gamedef):
Player::~Player()
{
+ clearHud();
}
// Horizontal acceleration (X and Z), Y direction is ignored