Fix #7303, Quad node mesh data leak
This commit is contained in:
parent
afbe013ba1
commit
7504a015aa
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