Fix crash from freeing of NULL pointer

This commit is contained in:
Mai Lavelle 2017-05-16 16:29:27 -04:00
parent 966a2681f9
commit 0a6c57d3d2
Notes: blender-bot 2023-02-14 06:58:02 +01:00
Referenced by issue #51540, Crash with Carve solver and boolean modifier on MSVC2015 builds (MSVC2013 builds are OK)
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void IMB_metadata_copy(struct ImBuf *dimb, struct ImBuf *simb)
{
BLI_assert(dimb != simb);
if (simb->metadata) {
IDP_FreeProperty(dimb->metadata);
IMB_metadata_free(dimb);
dimb->metadata = IDP_CopyProperty(simb->metadata);
}
}