Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-04-21 23:35:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-21 23:36:15 +0300
commitf2956d5fc727e4d5233dc2fbb308764e58f71827 (patch)
tree762ccc2fb5140d81d71c60a56bccab8c323be797
parent6885d316b1b4e275f055fc2adea9a21a03cbc260 (diff)
Tracking: Fix over-allocation in plane track's point tracks pointers when removing point track
-rw-r--r--source/blender/editors/space_clip/clip_utils.c2
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++) {