diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-06 13:21:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-06 13:22:25 +0300 |
commit | 6405aa4e9c73a2d51234b4e855bd5e8c1e4ba30f (patch) | |
tree | a402a9ff9f2b655cd7441ca3935cbdb0aa8bee90 /source/blender/blenkernel/intern/action.c | |
parent | 3f572fe7d25032a37770e71bda20eb6c4cd23a8b (diff) |
Fix access freed memory when doing constraints ID counter on main free
Basically just made constraints free function aware of possible do_id_users
argument, same as we've got for objects, object data and so on.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 1bae65a7fb4..f9556bf39ab 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -733,7 +733,7 @@ void BKE_pose_channel_free_ex(bPoseChannel *pchan, bool do_id_user) pchan->mpath = NULL; } - BKE_constraints_free(&pchan->constraints); + BKE_constraints_free_ex(&pchan->constraints, do_id_user); if (pchan->prop) { IDP_FreeProperty(pchan->prop); |