Workbench: Fixed memory leak

ImBuf radiance buffers were freed incorrectly
This commit is contained in:
Jeroen Bakker 2018-05-22 15:05:11 +02:00
parent dfe088c5d9
commit d97471ddf7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}