diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-27 21:15:45 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-27 21:15:45 +0400 |
commit | b931d2d0cdb3998e86d0dc828751cfd40be58110 (patch) | |
tree | 1cea00265557979bb3fd0ce20f59328c59b885c0 /source/blender/imbuf | |
parent | f0b872e7f147365f673d5cc4ea045417a4891211 (diff) |
Function IMB_onehalf was not freeing memory.
(Used for icon mipmap)
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index 1e701b8d615..af51b4448aa 100644 --- a/source/blender/imbuf/intern/scaling.c +++ b/source/blender/imbuf/intern/scaling.c @@ -360,6 +360,8 @@ ImBuf *IMB_onehalf(struct ImBuf *ibuf1) imb_onehalf_no_alloc(ibuf2, ibuf1); + IMB_freeImBuf(ibuf1); + return (ibuf2); } |