summaryrefslogtreecommitdiff
path: root/WorldSegment.h
diff options
context:
space:
mode:
authorKris Parker2009-11-01 07:12:26 +0000
committerKris Parker2009-11-01 07:12:26 +0000
commit5b2a4621faff1ac968d6363efd27985bfcfe4036 (patch)
tree78340b9ac26d4911985619d262a9eb945c1eda19 /WorldSegment.h
parent27545f7259e05faf2a39f34e4a60f4f6d226f6e1 (diff)
downloadstonesense-5b2a4621faff1ac968d6363efd27985bfcfe4036.tar.gz
stonesense-5b2a4621faff1ac968d6363efd27985bfcfe4036.tar.bz2
stonesense-5b2a4621faff1ac968d6363efd27985bfcfe4036.tar.xz
Matching New calls with Delete rather than Free clears up a memory leak
Diffstat (limited to 'WorldSegment.h')
-rw-r--r--WorldSegment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/WorldSegment.h b/WorldSegment.h
index 8d7157b..0d78b1f 100644
--- a/WorldSegment.h
+++ b/WorldSegment.h
@@ -28,7 +28,7 @@ public:
~WorldSegment(){
uint32_t num = (uint32_t)blocks.size();
for(uint32_t i = 0; i < num; i++){
- free(blocks[i]);
+ delete(blocks[i]);
}
blocks.clear();
}