Separate context freeing from task freeing in threaded particle updates
authorLukas Tönne <lukas.toenne@gmail.com>
Thu, 8 Jan 2015 11:40:27 +0000 (12:40 +0100)
committerLukas Tönne <lukas.toenne@gmail.com>
Tue, 20 Jan 2015 08:30:09 +0000 (09:30 +0100)
commitb292d783f28958a54f608375e6e99a92be5522d6
tree0a243224369edb837843d9514fdd20fd834b89ef
parent1727a165dd165d2ce392e7a31691db19fb093a5f
Separate context freeing from task freeing in threaded particle updates
to prevent double-freeing/invalid mem access.

This can happen with the "virtual parents" feature, which generates both
parent and child paths. Each task free function also freed the shared
context, leading to double freeing.
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_distribute.c
source/blender/blenkernel/intern/particle_system.c