Blender Git Loki

Git Commits -> Revision 2597319

Revision 2597319 by Bastien Montagne (master)
October 29, 2021, 09:32 (GMT)
LibQuery: Fix potential memleak in recursive case.

In case `library_foreach_ID_link` would return early in recursive
process, it would not properly free its utils data.

Also add proper iteration break in case some sub-calls requested it.

Finally, make this function return a boolean to know whether iteration
should be stopped or not (will be used in future commit to fix this
handling in embedded IDs case).

Part of T90922: Fix return policy inconsistency in `scene_foreach_id`.

Commit Details:

Full Hash: 259731909c8013fa6d8cdaa221ad7785cabd48ce
Parent Commit: e3b2f0f
Lines Changed: +46, -10

1 Modified Path:

/source/blender/blenkernel/intern/lib_query.c (+46, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021