Merge pull request #38690 from qarmin/fix_leak_2

Fixes memory leak with lightmap part 2
This commit is contained in:
Rémi Verschelde 2020-05-12 11:10:26 +02:00 committed by GitHub
commit 2f9ad38ba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3404,6 +3404,8 @@ RasterizerSceneHighEndRD::~RasterizerSceneHighEndRD() {
RD::get_singleton()->free(scene_state.gi_probe_buffer);
RD::get_singleton()->free(scene_state.directional_light_buffer);
RD::get_singleton()->free(scene_state.light_buffer);
RD::get_singleton()->free(scene_state.lightmap_buffer);
RD::get_singleton()->free(scene_state.lightmap_capture_buffer);
RD::get_singleton()->free(scene_state.reflection_buffer);
RD::get_singleton()->free(scene_state.decal_buffer);
memdelete_arr(scene_state.instances);