summaryrefslogtreecommitdiffstats
path: root/src/Generating/POCPieceGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-31 19:11:13 +0200
committerMattes D <github@xoft.cz>2014-05-31 19:11:13 +0200
commit6de45037c774f5fc748a4520b6f2afacdca94661 (patch)
treedc5908fdb33d679c05f10aa562ccbb107e7f3518 /src/Generating/POCPieceGenerator.cpp
parentMerge pull request #951 from worktycho/chunksparsing/structs (diff)
parentUpdated PlainsVillage prefabs. (diff)
downloadcuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.gz
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.bz2
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.lz
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.xz
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.tar.zst
cuberite-6de45037c774f5fc748a4520b6f2afacdca94661.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/POCPieceGenerator.cpp5
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();
}