diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-26 13:36:19 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-26 13:36:19 +0400 |
commit | 3fab018da48a485f56c68c5eca07d35430ef351c (patch) | |
tree | 64de4cc28834222fb012450dae02ab9011759a23 /source/blender | |
parent | 4a1fdd80f938cbb20e9e433bf1fb22472e3acb29 (diff) |
Fix for object solver possible pointing to a freed memory when removing
movie clip data block from python/
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/movieclip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c index bc147c52094..1a7c45cea0d 100644 --- a/source/blender/blenkernel/intern/movieclip.c +++ b/source/blender/blenkernel/intern/movieclip.c @@ -1160,6 +1160,12 @@ void unlink_movieclip(Main *bmain, MovieClip *clip) if (data->clip == clip) data->clip = NULL; } + else if (cti->type == CONSTRAINT_TYPE_OBJECTSOLVER) { + bObjectSolverConstraint *data = (bObjectSolverConstraint *) con->data; + + if (data->clip == clip) + data->clip = NULL; + } } } |