Merge pull request #38907 from cj-dimaggio/rasterizer_dummy_leak

Delete DummyMesh when RasterizerStorageDummy is Freed
This commit is contained in:
Rémi Verschelde 2020-05-21 10:55:59 +02:00 committed by GitHub
commit e6ff562a4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -861,6 +861,13 @@ public:
texture_owner.free(p_rid);
memdelete(texture);
}
if (mesh_owner.owns(p_rid)) {
// delete the mesh
DummyMesh *mesh = mesh_owner.getornull(p_rid);
mesh_owner.free(p_rid);
memdelete(mesh);
}
return true;
}