Sequencer: fix crash caused by incorrect handling of color management on ImBuf duplicate

This commit is contained in:
Sergey Sharybin
2012-08-22 16:45:09 +00:00
parent 2dcaa8f863
commit 93ca64c12a

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