From f2e54dc47d0ddba2b1ca582e8c8feb64ccfcb270 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 Apr 2021 23:01:12 +0300 Subject: [PATCH] Fix mismatched new[]/delete --- source/render/programdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/render/programdata.cpp b/source/render/programdata.cpp index d6271a73..401ed189 100644 --- a/source/render/programdata.cpp +++ b/source/render/programdata.cpp @@ -79,7 +79,7 @@ ProgramData::~ProgramData() for(BlockMap::iterator i=blocks.begin(); i!=blocks.end(); ++i) { if(i->second.indices.type_flag==0xFE) - delete i->second.indices.dynamic.values; + delete[] i->second.indices.dynamic.values; delete i->second.block; } delete buffer; -- 2.45.2