Fix T80657: Not freed memory blocks with Batch-Generate Previews.

`ED_preview_icon_render()` owns the `id_copy` localized ID, so it has to
free it itself.
This commit is contained in:
Bastien Montagne 2020-09-28 14:56:17 +02:00
parent 3158fc2593
commit c6b904e972
Notes: blender-bot 2023-02-14 10:04:50 +01:00
Referenced by issue #80657, Not freed memory blocks with Batch-Generate Previews
1 changed files with 3 additions and 0 deletions

View File

@ -1334,6 +1334,9 @@ void ED_preview_icon_render(Main *bmain, Scene *scene, ID *id, uint *rect, int s
icon_preview_endjob(&ip);
BLI_freelistN(&ip.sizes);
if (ip.id_copy != NULL) {
preview_id_copy_free(ip.id_copy);
}
}
void ED_preview_icon_job(