From 36ad4a1364fa63a780f7f0057f2331bc4a4a4650 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Mon, 13 Aug 2012 20:16:55 +0000 Subject: 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. --- source/blender/imbuf/intern/allocimbuf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/imbuf') 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; -- cgit v1.2.3