Blender Git Commit Log

Git Commits -> Revision fe2c586

August 10, 2021, 01:35 (GMT)
Fix T90170: `RNA_property_pointer_get` creating data in non-thread-safe way.

Protect this accessor with a local static mutex when it needs to
create/write data.

Ideally accessors should never create or modify data, but there are some
cases where this bad behavior is currently unavoidable.

This is the case of the Pointer accessor when the actual IDProperty has
not yet been created.

NOTE: this fixes a memory leak in liboverride diffing process when
several different overrides use a same linked reference ID.

Differential Revision: https://developer.blender.org/D12060

Commit Details:

Full Hash: fe2c586aa97cde7a127377d3924092c9e07c45b0
Parent Commit: de6ca93
Committed By: YimingWu
Lines Changed: +10, -2

1 Modified Path:

/source/blender/makesrna/intern/rna_access.c (+10, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021