mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix #7303, Quad node mesh data leak
(cherry picked from commit 7504a015aa)
This commit is contained in:
parent
f10a78e5c0
commit
c5bff5073e
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…
Add table
Add a link
Reference in a new issue