Blender Git Commit Log

Git Commits -> Revision 317f09e

Revision 317f09e by Bastien Montagne (master)
August 5, 2021, 10:12 (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: 317f09ebf990ab4a5d033bab61a0aa8816772615
Parent Commit: 03e2f11
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