diff options
author | madmaxoft <github@xoft.cz> | 2014-05-29 09:19:20 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-29 09:19:20 +0200 |
commit | e5187aa645b0f06e58e347bed1f8d68916764ba1 (patch) | |
tree | 47c93203c09565f08da195b1592e44bbe40e60d2 | |
parent | Merge remote-tracking branch 'origin/master' into VillageGen (diff) | |
download | cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar.gz cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar.bz2 cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar.lz cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar.xz cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.tar.zst cuberite-e5187aa645b0f06e58e347bed1f8d68916764ba1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/POCPieceGenerator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Generating/POCPieceGenerator.cpp b/src/Generating/POCPieceGenerator.cpp index 9ed4b565e..491f4d206 100644 --- a/src/Generating/POCPieceGenerator.cpp +++ b/src/Generating/POCPieceGenerator.cpp @@ -186,6 +186,11 @@ cPOCPieceGenerator::cPOCPieceGenerator(int a_Seed) : cPOCPieceGenerator::~cPOCPieceGenerator() { cPieceGenerator::FreePieces(m_Pieces); + for (cPieces::iterator itr = m_AvailPieces.begin(), end = m_AvailPieces.end(); itr != end; ++itr) + { + delete *itr; + } + m_AvailPieces.clear(); } |