diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-04 08:40:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-04 08:41:28 +0300 |
commit | 81e3deadea05a847d5e6c899c72218e719d122bd (patch) | |
tree | 80bb841b7490cc63a40dda17d1f03627e3567ca7 | |
parent | 7a0f57cd01d337f6f3a9cf02ecece635551b881d (diff) |
Fix for leak creating stereo images
-rw-r--r-- | source/blender/imbuf/intern/stereoimbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/stereoimbuf.c b/source/blender/imbuf/intern/stereoimbuf.c index cf9c6b388ff..f1608f56c0b 100644 --- a/source/blender/imbuf/intern/stereoimbuf.c +++ b/source/blender/imbuf/intern/stereoimbuf.c @@ -620,7 +620,7 @@ static void imb_stereo3d_squeeze_rectf(float *rectf, Stereo3dFormat *s3d, const width, height, width, width); IMB_scaleImBuf_threaded(ibuf, x, y); - rectf = MEM_dupallocN(ibuf->rect_float); + memcpy(rectf, ibuf->rect_float, x * y * sizeof(float[4])); IMB_freeImBuf(ibuf); } @@ -645,7 +645,7 @@ static void imb_stereo3d_squeeze_rect(int *rect, Stereo3dFormat *s3d, const size width, height, width, width); IMB_scaleImBuf_threaded(ibuf, x, y); - rect = MEM_dupallocN(ibuf->rect); + memcpy(rect, ibuf->rect, x * y * sizeof(unsigned int)); IMB_freeImBuf(ibuf); } |