Merge pull request #7311 from bojidar-bg/quad-leak

Fix a Quad node mesh data leak
This commit is contained in:
Rémi Verschelde 2016-12-23 15:45:57 +01:00 committed by GitHub
commit 6d6ec54093
2 changed files with 5 additions and 0 deletions

View File

@ -230,3 +230,7 @@ Quad::Quad() {
configured=false;
}
Quad::~Quad() {
VisualServer::get_singleton()->free(mesh);
}

View File

@ -71,6 +71,7 @@ public:
virtual AABB get_aabb() const;
Quad();
~Quad();
};