]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix mismatched new[]/delete
authorMikko Rasa <tdb@tdb.fi>
Sat, 3 Apr 2021 20:01:12 +0000 (23:01 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 3 Apr 2021 21:33:21 +0000 (00:33 +0300)
source/render/programdata.cpp

index d6271a733be69ed1f5e8f51e23b25132e80d0560..401ed18949af2ff09ec7b826b5c36627854e4201 100644 (file)
@@ -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;