mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix memory leak writing PNG when opening the file fails
This commit is contained in:
parent
13b02a724f
commit
d56111383a
1 changed files with 1 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags)
|
|||
if (pixels16) {
|
||||
MEM_freeN(pixels16);
|
||||
}
|
||||
MEM_freeN(row_pointers);
|
||||
printf("imb_savepng: Cannot open file for writing: '%s'\n", name);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue