forked from bartvdbraak/blender
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:
parent
3158fc2593
commit
c6b904e972
@ -1334,6 +1334,9 @@ void ED_preview_icon_render(Main *bmain, Scene *scene, ID *id, uint *rect, int s
|
|||||||
icon_preview_endjob(&ip);
|
icon_preview_endjob(&ip);
|
||||||
|
|
||||||
BLI_freelistN(&ip.sizes);
|
BLI_freelistN(&ip.sizes);
|
||||||
|
if (ip.id_copy != NULL) {
|
||||||
|
preview_id_copy_free(ip.id_copy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ED_preview_icon_job(
|
void ED_preview_icon_job(
|
||||||
|
Loading…
Reference in New Issue
Block a user