From: Craig Robbins Date: Thu, 5 Mar 2015 05:17:37 +0000 (+1000) Subject: Fix memory leak in MapgenV6 X-Git-Tag: 0.4.13~539 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e675793155d7cd56bbd2222df7b45245008c647;p=oweals%2Fminetest.git Fix memory leak in MapgenV6 --- diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 4783e4285..58e6022f8 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -117,6 +117,8 @@ MapgenV6::~MapgenV6() delete noise_mud; delete noise_beach; delete noise_biome; + + delete[] heightmap; }