Tracking: Fix crash when tracking failed

Was a dangling pointer to a freed memory left behind.
This commit is contained in:
Sergey Sharybin 2017-09-23 16:07:32 +05:00
parent dc86b7a4b5
commit 840cce840e
Notes: blender-bot 2023-02-14 11:28:43 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ static void track_markers_endjob(void *tmv)
static void track_markers_freejob(void *tmv)
{
TrackMarkersJob *tmj = (TrackMarkersJob *)tmv;
tmj->clip->tracking_context = NULL;
BKE_autotrack_context_free(tmj->context);
MEM_freeN(tmj);
}