From 15f7373dd0d59b2fc1dd880ac679f68c888e1a7e Mon Sep 17 00:00:00 2001 From: coco875 Date: Mon, 22 Dec 2025 18:04:34 +0100 Subject: better destructor --- src/utils/Decompressor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/Decompressor.cpp') diff --git a/src/utils/Decompressor.cpp b/src/utils/Decompressor.cpp index 5139fcc..f69872b 100644 --- a/src/utils/Decompressor.cpp +++ b/src/utils/Decompressor.cpp @@ -222,7 +222,7 @@ bool Decompressor::IsSegmented(uint32_t addr) { void Decompressor::ClearCache() { for(auto& [key, value] : gCachedChunks){ - delete value->data; + delete[] value->data; } gCachedChunks.clear(); } \ No newline at end of file -- cgit v1.2.3