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.

This commit is contained in:
Mitchell Stokes
2012-08-13 20:16:55 +00:00
parent c0539d267d
commit 36ad4a1364

View File

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