From: Mikko Rasa Date: Sat, 3 Apr 2021 20:01:12 +0000 (+0300) Subject: Fix mismatched new[]/delete X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f2e54dc47d0ddba2b1ca582e8c8feb64ccfcb270;p=libs%2Fgl.git Fix mismatched new[]/delete --- 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;