diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-18 15:27:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-18 15:28:13 +0300 |
commit | 2836003f6bd26e8d1e9dfd9ffb1d844384bebbd2 (patch) | |
tree | 3f69a4c6f8adc1a4d905ae4d12b602dcd4edbaf0 | |
parent | 7d5a1c0c4c79fd6f1b0f77d7069cd15e2358a5a7 (diff) |
Fix T51187: Memory leak when exporting OpenEXR monochrome animation
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 318f6480aaf..8a01e120d6d 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -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 |