From 93ca64c12afbb91610dae9f007bc2d1d6f4cf79c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 22 Aug 2012 16:45:09 +0000 Subject: [PATCH] Sequencer: fix crash caused by incorrect handling of color management on ImBuf duplicate --- source/blender/imbuf/intern/allocimbuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c index b1606b6aff5..bee4758dd07 100644 --- a/source/blender/imbuf/intern/allocimbuf.c +++ b/source/blender/imbuf/intern/allocimbuf.c @@ -446,9 +446,10 @@ ImBuf *IMB_dupImBuf(ImBuf *ibuf1) /* for now don't duplicate metadata */ tbuf.metadata = NULL; - *ibuf2 = tbuf; + tbuf.display_buffer_flags = NULL; + tbuf.colormanage_cache = NULL; - IMB_colormanage_cache_free(ibuf2); + *ibuf2 = tbuf; return(ibuf2); }