Commit 11981c31 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by Dikay900

fixed valgrind warning in polylines

parent ec050826
...@@ -2232,6 +2232,7 @@ void cv::polylines(InputOutputArray _img, InputArrayOfArrays pts, ...@@ -2232,6 +2232,7 @@ void cv::polylines(InputOutputArray _img, InputArrayOfArrays pts,
Mat p = pts.getMat(manyContours ? i : -1); Mat p = pts.getMat(manyContours ? i : -1);
if( p.total() == 0 ) if( p.total() == 0 )
{ {
ptsptr[i] = NULL;
npts[i] = 0; npts[i] = 0;
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment