fix memory leak in repere-extract-keyframe; fix idx indices