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

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