Fix memory leak by dropping sky
authorPilzAdam <pilzadam@minetest.net>
Fri, 10 May 2013 17:12:02 +0000 (19:12 +0200)
committerPilzAdam <pilzadam@minetest.net>
Fri, 10 May 2013 17:12:24 +0000 (19:12 +0200)
src/game.cpp

index 81f35d4c0f61202c724c6702dcb9ffe7c871efa2..16d55077699b7ccd2bc78d64e2a16292f675d440 100644 (file)
@@ -3334,6 +3334,8 @@ void the_game(
                clouds->drop();
        if (gui_chat_console)
                gui_chat_console->drop();
+       if (sky)
+               sky->drop();
        clear_particles();
        
        /*