Bugfix from own testing:

Blender crashed, when started in debug -d, with compositor, after render.
Reason was the BKE_image_print_memlist() which reads the ibuf->rect from
all images, but for Image types "VIEWER" that's not valid, this data is
coming from other sources.
This commit is contained in:
Ton Roosendaal 2009-04-29 16:07:10 +00:00
parent 3b19b6c33f
commit f56bfbdd0c

@ -640,6 +640,11 @@ static uintptr_t image_mem_size(Image *ima)
uintptr_t size = 0;
size= 0;
/* viewers have memory depending on other rules, has no valid rect pointer */
if(ima->source==IMA_SRC_VIEWER)
return 0;
for(ibuf= ima->ibufs.first; ibuf; ibuf= ibuf->next) {
if(ibuf->rect) size += MEM_allocN_len(ibuf->rect);
else if(ibuf->rect_float) size += MEM_allocN_len(ibuf->rect_float);