mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix Texture leak in Meshes
This commit is contained in:
@@ -79,6 +79,9 @@ Mesh::Mesh(int vertexcount, Mesh::DrawMode mode)
|
||||
|
||||
Mesh::~Mesh()
|
||||
{
|
||||
if (texture)
|
||||
texture->release();
|
||||
|
||||
delete vbo;
|
||||
delete ibo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user