aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-05-10 19:12:02 +0200
committerPilzAdam <pilzadam@minetest.net>2013-05-10 19:12:24 +0200
commit782d06be460e81c9fe4760c78003ac6522676e82 (patch)
treea9c060900d752bafec230f51c76e4fadad53657a /src/game.cpp
parent81c863ac4df1530123ef7952713623dadb049bec (diff)
downloadminetest-782d06be460e81c9fe4760c78003ac6522676e82.tar.gz
minetest-782d06be460e81c9fe4760c78003ac6522676e82.tar.bz2
minetest-782d06be460e81c9fe4760c78003ac6522676e82.zip
Fix memory leak by dropping sky
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 81f35d4c0..16d550776 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3334,6 +3334,8 @@ void the_game(
clouds->drop();
if (gui_chat_console)
gui_chat_console->drop();
+ if (sky)
+ sky->drop();
clear_particles();
/*