From f5856b88b0ebca74875d489bf76d4b2439cffddd Mon Sep 17 00:00:00 2001 From: A-lex-Ra Date: Fri, 5 Jan 2024 13:19:47 +0600 Subject: [PATCH] fix potential memory leak --- src/voxels/Chunks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/voxels/Chunks.cpp b/src/voxels/Chunks.cpp index 2983d4ea..b44ce1a0 100644 --- a/src/voxels/Chunks.cpp +++ b/src/voxels/Chunks.cpp @@ -45,6 +45,7 @@ Chunks::~Chunks(){ chunks[i] = nullptr; } delete[] chunks; + delete[] chunksSecond; } voxel* Chunks::get(int x, int y, int z){