Fix T51187: Memory leak when exporting OpenEXR monochrome animation
This commit is contained in:
parent
7d5a1c0c4c
commit
2836003f6b
Notes:
blender-bot
2023-02-14 07:25:48 +01:00
Referenced by issue #51408, Cycles - Principled BSDF Shader - Transparency is not working as expected Referenced by issue #51248, Default size of the User Preferences window does not account for DPI scale Referenced by issue #51187, Memory leak when exporting OpenEXR monochrome animation Referenced by issue #49981, New Depsgraph - When camera is on inactive layer, it does not evaluate constraints
|
@ -2216,8 +2216,10 @@ void BKE_imbuf_write_prepare(ImBuf *ibuf, const ImageFormatData *imf)
|
|||
ibuf->foptions.flag |= OPENEXR_HALF;
|
||||
ibuf->foptions.flag |= (imf->exr_codec & OPENEXR_COMPRESS);
|
||||
|
||||
if (!(imf->flag & R_IMF_FLAG_ZBUF))
|
||||
ibuf->zbuf_float = NULL; /* signal for exr saving */
|
||||
if (!(imf->flag & R_IMF_FLAG_ZBUF)) {
|
||||
/* Signal for exr saving. */
|
||||
IMB_freezbuffloatImBuf(ibuf);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue