Fix memory leak in MapgenV6
authorCraig Robbins <kde.psych@gmail.com>
Thu, 5 Mar 2015 05:17:37 +0000 (15:17 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Thu, 5 Mar 2015 05:17:37 +0000 (15:17 +1000)
src/mapgen_v6.cpp

index 4783e42857490315b4c035548581ca94f2da045c..58e6022f8e9876ea210ce70e74314b1909d5285d 100644 (file)
@@ -117,6 +117,8 @@ MapgenV6::~MapgenV6()
        delete noise_mud;
        delete noise_beach;
        delete noise_biome;
+
+       delete[] heightmap;
 }