summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2018-03-12 21:40:47 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2018-03-13 00:22:08 -0400
commite9ac87390c952e7a7a93442a5ceee76324b10a1a (patch)
tree5b27d4273d101f9aa2a2a5a0322649ce57973aff /servers
parenteceba5aa6a36521c878cf976845123e820d27161 (diff)
Fixed several leaks in VisualServerScene, RasterizerSceneGLES3 and RasterizerGLES3
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_raster.cpp1
-rw-r--r--servers/visual/visual_server_scene.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index 64a3502e40..fca3126604 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -205,4 +205,5 @@ VisualServerRaster::~VisualServerRaster() {
memdelete(VSG::canvas);
memdelete(VSG::viewport);
memdelete(VSG::rasterizer);
+ memdelete(VSG::scene);
}
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp
index 0920fa748b..884489375f 100644
--- a/servers/visual/visual_server_scene.cpp
+++ b/servers/visual/visual_server_scene.cpp
@@ -3333,6 +3333,7 @@ VisualServerScene::~VisualServerScene() {
#ifndef NO_THREADS
probe_bake_thread_exit = true;
+ probe_bake_sem->post();
Thread::wait_to_finish(probe_bake_thread);
memdelete(probe_bake_thread);
memdelete(probe_bake_sem);