diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-21 23:35:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-21 23:36:15 +0300 |
commit | f2956d5fc727e4d5233dc2fbb308764e58f71827 (patch) | |
tree | 762ccc2fb5140d81d71c60a56bccab8c323be797 /source | |
parent | 6885d316b1b4e275f055fc2adea9a21a03cbc260 (diff) |
Tracking: Fix over-allocation in plane track's point tracks pointers when removing point track
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_clip/clip_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_utils.c b/source/blender/editors/space_clip/clip_utils.c index 5f919c9b51d..6a2a01620cd 100644 --- a/source/blender/editors/space_clip/clip_utils.c +++ b/source/blender/editors/space_clip/clip_utils.c @@ -221,7 +221,7 @@ void clip_delete_track(bContext *C, MovieClip *clip, MovieTrackingTrack *track) int track_index; MovieTrackingTrack **new_point_tracks; - new_point_tracks = MEM_mallocN(sizeof(*new_point_tracks) * plane_track->point_tracksnr, + new_point_tracks = MEM_mallocN(sizeof(*new_point_tracks) * (plane_track->point_tracksnr - 1), "new point tracks array"); for (i = 0, track_index = 0; i < plane_track->point_tracksnr; i++) { |