Fix related to T46223: memory leak when loading multilayer multiview images.
Differential Revision: https://developer.blender.org/D1549
This commit is contained in:
parent
061f20112e
commit
e5ee9d1eff
|
@ -3055,7 +3055,9 @@ static void image_create_multilayer(Image *ima, ImBuf *ibuf, int framenr)
|
|||
const char *colorspace = ima->colorspace_settings.name;
|
||||
bool predivide = (ima->alpha_mode == IMA_ALPHA_PREMUL);
|
||||
|
||||
ima->rr = RE_MultilayerConvert(ibuf->userdata, colorspace, predivide, ibuf->x, ibuf->y);
|
||||
/* only load rr once for multiview */
|
||||
if (!ima->rr)
|
||||
ima->rr = RE_MultilayerConvert(ibuf->userdata, colorspace, predivide, ibuf->x, ibuf->y);
|
||||
|
||||
IMB_exr_close(ibuf->userdata);
|
||||
|
||||
|
|
Loading…
Reference in New Issue