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