diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-22 16:05:11 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-22 16:05:11 +0300 |
commit | d97471ddf74e1e4a122c4678a715f2e6d05a6e6c (patch) | |
tree | 7ed8e3f62ebc9da2cce99fa208cc47e4c6b513db /source/blender/blenkernel | |
parent | dfe088c5d9c819e7266e8e88fb31e92ac2ee8592 (diff) |
Workbench: Fixed memory leak
ImBuf radiance buffers were freed incorrectly
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index 5b84a686fa9..a8861a90fd0 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -64,7 +64,7 @@ static void studiolight_free(struct StudioLight *sl) { for (int index = 0 ; index < 6 ; index ++) { if (sl->radiance_buffers[index] != NULL) { - MEM_freeN(sl->radiance_buffers[index]); + IMB_freeImBuf(sl->radiance_buffers[index]); sl->radiance_buffers[index] = NULL; } } |