Merge pull request #5193 from ilya-lavrenov:valgrind_error

This commit is contained in:
Alexander Alekhin 2015-08-14 15:32:16 +00:00
commit 8d264d9f64

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