Fix T78551 EEVEE: Fix memleak from renderpass ubo

This commit is contained in:
Clément Foucault 2020-07-03 02:28:06 +02:00
parent 0961ce04cb
commit a68fd2561e
Notes: blender-bot 2024-04-11 14:26:06 +02:00
Referenced by issue #78551, DRW: mem leak: sldata->renderpass_ubo.environment not freed in  void EEVEE_view_layer_data_free
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ void EEVEE_view_layer_data_free(void *storage)
DRW_UBO_FREE_SAFE(sldata->renderpass_ubo.spec_color);
DRW_UBO_FREE_SAFE(sldata->renderpass_ubo.spec_light);
DRW_UBO_FREE_SAFE(sldata->renderpass_ubo.emit);
DRW_UBO_FREE_SAFE(sldata->renderpass_ubo.environment);
if (sldata->material_cache) {
BLI_memblock_destroy(sldata->material_cache, NULL);