diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-08-14 00:16:55 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-08-14 00:16:55 +0400 |
commit | 36ad4a1364fa63a780f7f0057f2331bc4a4a4650 (patch) | |
tree | f658a02c855dcfca62c0129fb8c75686615e961b /source | |
parent | c0539d267d92235baef17e9e6a1edc25cc8beeeb (diff) |
Fix for [#32320] "Image browser in UV/image Editor makes Blender crash at exit when .dds image is loaded" reported by Christian Monfort (gulbroz), who also provided the patch to fix the problem. The problem was a double free with some dds buffer data.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/allocimbuf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c index c717d8eee5a..7724f444b2c 100644 --- a/source/blender/imbuf/intern/allocimbuf.c +++ b/source/blender/imbuf/intern/allocimbuf.c @@ -432,6 +432,7 @@ ImBuf *IMB_dupImBuf(ImBuf *ibuf1) tbuf.zbuf_float = NULL; for (a = 0; a < IB_MIPMAP_LEVELS; a++) tbuf.mipmap[a] = NULL; + tbuf.dds_data.data = NULL; /* set malloc flag */ tbuf.mall = ibuf2->mall; |