diff options
author | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-06-19 10:49:56 +0200 |
commit | e8143de01bff31f9e153949d7ab5b0df82629541 (patch) | |
tree | d6a37e6433f973765c8ca63e408dbbd420b08d70 /src/Generating | |
parent | Merge pull request #1096 from mc-server/redstonerefactor (diff) | |
download | cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.gz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.bz2 cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.lz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.xz cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.tar.zst cuberite-e8143de01bff31f9e153949d7ab5b0df82629541.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/BioGen.cpp | 2 | ||||
-rw-r--r-- | src/Generating/CompoGen.cpp | 2 | ||||
-rw-r--r-- | src/Generating/HeiGen.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp index 47ba080c6..3e3a034b2 100644 --- a/src/Generating/BioGen.cpp +++ b/src/Generating/BioGen.cpp @@ -135,7 +135,9 @@ cBioGenCache::cBioGenCache(cBiomeGen * a_BioGenToCache, int a_CacheSize) : cBioGenCache::~cBioGenCache() { delete[] m_CacheData; + m_CacheData = NULL; delete[] m_CacheOrder; + m_CacheOrder = NULL; } diff --git a/src/Generating/CompoGen.cpp b/src/Generating/CompoGen.cpp index 688d19c40..2da285d72 100644 --- a/src/Generating/CompoGen.cpp +++ b/src/Generating/CompoGen.cpp @@ -672,7 +672,9 @@ cCompoGenCache::cCompoGenCache(cTerrainCompositionGen & a_Underlying, int a_Cach cCompoGenCache::~cCompoGenCache() { delete[] m_CacheData; + m_CacheData = NULL; delete[] m_CacheOrder; + m_CacheOrder = NULL; } diff --git a/src/Generating/HeiGen.cpp b/src/Generating/HeiGen.cpp index 25ac912fd..202f7db7e 100644 --- a/src/Generating/HeiGen.cpp +++ b/src/Generating/HeiGen.cpp @@ -142,7 +142,9 @@ cHeiGenCache::cHeiGenCache(cTerrainHeightGen & a_HeiGenToCache, int a_CacheSize) cHeiGenCache::~cHeiGenCache() { delete[] m_CacheData; + m_CacheData = NULL; delete[] m_CacheOrder; + m_CacheOrder = NULL; } |