summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal54@gmail.com>2020-10-12 18:06:47 +0200
committerRafał Mikrut <mikrutrafal54@gmail.com>2020-10-12 18:06:47 +0200
commit84a1817a75baf9f9c5e51a9aa42549203c50a615 (patch)
tree215a43839b20e07f4058ef0864df2d502a5f57d7 /servers
parentab0907c1bab2b1f4131aa63d24f9d337692d64a6 (diff)
Fixes leaks with shader and material
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
index 1a1490816c..90dd6af319 100644
--- a/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
+++ b/servers/rendering/rasterizer_rd/rasterizer_storage_rd.cpp
@@ -7888,6 +7888,9 @@ RasterizerStorageRD::~RasterizerStorageRD() {
giprobe_sdf_shader.version_free(giprobe_sdf_shader_version);
particles_shader.copy_shader.version_free(particles_shader.copy_shader_version);
+ RenderingServer::get_singleton()->free(particles_shader.default_material);
+ RenderingServer::get_singleton()->free(particles_shader.default_shader);
+
RD::get_singleton()->free(default_rd_storage_buffer);
if (decal_atlas.textures.size()) {