summaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_raster.cpp
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-02 17:23:54 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-02 17:23:54 +0300
commitf7dad789e958fed81bb167b14c5add45ef723cf9 (patch)
treed881920fc476fd538e80af17610efb1d6d3a1732 /servers/visual/visual_server_raster.cpp
parent4cb0887660861402fe6857662e622488adb86514 (diff)
Fix various memory leaks and errors
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r--servers/visual/visual_server_raster.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index d45bda72b7..7aded4e816 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -77,6 +77,8 @@ void VisualServerRaster::free(RID p_rid) {
return;
if (VSG::scene->free(p_rid))
return;
+ if (VSG::scene_render->free(p_rid))
+ return;
}
/* EVENT QUEUING */