mirror of
https://github.com/opencv/opencv.git
synced 2026-11-25 02:38:14 -06:00
DISOpticalFlowImpl::collectGarbage() cleared variational_refinement_processors even though only the constructor populates it, and indexed finest_scale..coarsest_scale (out of bounds before the first calc()). Call collectGarbage() across variational_refinement_processors without clearing the vector, and release the remaining internal buffers.