Merge pull request #38676 from qarmin/fix_leak_lightmaps

Fix memory leak with light maps
This commit is contained in:
Rémi Verschelde 2020-05-11 23:02:57 +02:00 committed by GitHub
commit 92022cd47f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3410,6 +3410,8 @@ RasterizerSceneHighEndRD::~RasterizerSceneHighEndRD() {
memdelete_arr(scene_state.gi_probes);
memdelete_arr(scene_state.directional_lights);
memdelete_arr(scene_state.lights);
memdelete_arr(scene_state.lightmaps);
memdelete_arr(scene_state.lightmap_captures);
memdelete_arr(scene_state.reflections);
memdelete_arr(scene_state.decals);
}