Fix memory leak with light maps

This commit is contained in:
qarmin 2020-05-11 21:04:39 +02:00
parent 6d46d2fe27
commit 84867275bb
1 changed files with 2 additions and 0 deletions

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);
}