diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2016-12-16 14:50:46 +0200 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2016-12-16 14:50:46 +0200 |
commit | 7504a015aa5637449aa2c69a3c11b521ff71225d (patch) | |
tree | 3fa2af78280e4afb15d76d6d11a8552a8e85fb8b /scene | |
parent | afbe013ba12d68f20ef1dfe2d7a895105a440bd9 (diff) |
Fix #7303, Quad node mesh data leak
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/quad.cpp | 4 | ||||
-rw-r--r-- | scene/3d/quad.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/quad.cpp b/scene/3d/quad.cpp index 1a7eeef180..adba4516a6 100644 --- a/scene/3d/quad.cpp +++ b/scene/3d/quad.cpp @@ -230,3 +230,7 @@ Quad::Quad() { configured=false; } + +Quad::~Quad() { + VisualServer::get_singleton()->free(mesh); +} diff --git a/scene/3d/quad.h b/scene/3d/quad.h index be55b0d1c9..4b419db3b8 100644 --- a/scene/3d/quad.h +++ b/scene/3d/quad.h @@ -71,6 +71,7 @@ public: virtual AABB get_aabb() const; Quad(); + ~Quad(); }; |