Merge pull request #42744 from qarmin/fix_leaks

Fixes leaks with shader and material
This commit is contained in:
Rémi Verschelde 2020-10-12 18:20:03 +02:00 committed by GitHub
commit 3f7f4fb6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -7888,6 +7888,9 @@ RasterizerStorageRD::~RasterizerStorageRD() {
giprobe_sdf_shader.version_free(giprobe_sdf_shader_version); giprobe_sdf_shader.version_free(giprobe_sdf_shader_version);
particles_shader.copy_shader.version_free(particles_shader.copy_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); RD::get_singleton()->free(default_rd_storage_buffer);
if (decal_atlas.textures.size()) { if (decal_atlas.textures.size()) {