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); }