Sequencer: fix crash caused by incorrect handling of color management on ImBuf duplicate
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Aug 2012 16:45:09 +0000 (16:45 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Aug 2012 16:45:09 +0000 (16:45 +0000)
source/blender/imbuf/intern/allocimbuf.c

index b1606b6aff520b3bf0db7606260af1a2f5107dd2..bee4758dd0797c555445fdadcad5094588013808 100644 (file)
@@ -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);
 }