-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Hi, thanks for grate work!
I find some memory leaks of the vsMotionDetection
function:
- in the
vs_vector_filter
,vs_vector_append
should be replaced byvs_vector_append_dup
, and addvs_vector_del(&motions2);
behindmotionsfine = vs_vector_filter(&motions2, lm_match_better, &meanMatch);
invsMotionDetection
meanwhile; - add
vs_array_free(matchQualities1);
behinddouble meanMatch = cleanmean(matchQualities1.dat, matchQualities1.len, NULL, NULL);
invsMotionDetection
; - add
vs_vector_fini(&motionscoarse); vs_vector_fini(&motionsfine);
behind*motions = vs_vector_concat(&motionscoarse, &motionsfine);
invsMotionDetection
.
You can check the code and fix the problems.
Best wishes.
Metadata
Metadata
Assignees
Labels
No labels