From: Mikko Rasa Date: Sat, 6 Feb 2021 17:46:31 +0000 (+0200) Subject: Avoid invalid memory access when destroying Mesh X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=85d077813b5337e78d91e637177abebf37dd0425;p=libs%2Fgl.git Avoid invalid memory access when destroying Mesh --- diff --git a/source/mesh.cpp b/source/mesh.cpp index ae08fd83..dba8a991 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -40,6 +40,7 @@ void Mesh::init(ResourceManager *rm) Mesh::~Mesh() { set_manager(0); + batches.clear(); delete vbuf; delete ibuf; }