fixed valgrind warning in polylines

This commit is contained in:
Ilya Lavrenov 2015-08-14 17:57:54 +03:00
parent 34aa4e4578
commit 855765986e

View File

@ -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;
}