fixed valgrind warning in polylines

(cherry picked from commit 855765986e)
pull/5378/merge
Ilya Lavrenov 9 years ago committed by Alexander Smorkalov
parent d0210f510e
commit fc0e0239b8
  1. 1
      modules/core/src/drawing.cpp

@ -2216,6 +2216,7 @@ void cv::polylines(InputOutputArray _img, InputArrayOfArrays pts,
Mat p = pts.getMat(manyContours ? i : -1);
if( p.total() == 0 )
{
ptsptr[i] = NULL;
npts[i] = 0;
continue;
}

Loading…
Cancel
Save