diff options
| author | Kris Parker | 2009-11-01 07:12:26 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-01 07:12:26 +0000 |
| commit | 5b2a4621faff1ac968d6363efd27985bfcfe4036 (patch) | |
| tree | 78340b9ac26d4911985619d262a9eb945c1eda19 /WorldSegment.h | |
| parent | 27545f7259e05faf2a39f34e4a60f4f6d226f6e1 (diff) | |
| download | stonesense-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.h | 2 |
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();
}
|
