summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/quad.cpp4
-rw-r--r--scene/3d/quad.h1
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();
};