X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmesh.cpp;h=dba8a9915489aede7906f8a684b9d59e288428b5;hp=ae08fd83376f1ca838b44c44f717b5f8b668b937;hb=85d077813b5337e78d91e637177abebf37dd0425;hpb=14247923eb936d602af43b35cb8ad0fd5d3e25e7 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; }