Merge pull request #7311 from bojidar-bg/quad-leak
Fix a Quad node mesh data leak
This commit is contained in:
commit
6d6ec54093
2 changed files with 5 additions and 0 deletions
|
@ -230,3 +230,7 @@ Quad::Quad() {
|
||||||
configured=false;
|
configured=false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Quad::~Quad() {
|
||||||
|
VisualServer::get_singleton()->free(mesh);
|
||||||
|
}
|
||||||
|
|
|
@ -71,6 +71,7 @@ public:
|
||||||
virtual AABB get_aabb() const;
|
virtual AABB get_aabb() const;
|
||||||
|
|
||||||
Quad();
|
Quad();
|
||||||
|
~Quad();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue