Fix #7303, Quad node mesh data leak

This commit is contained in:
Bojidar Marinov 2016-12-16 14:50:46 +02:00
parent afbe013ba1
commit 7504a015aa
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
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();
};