Fix crash from freeing of NULL pointer
This commit is contained in:
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)
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue