Commit fc0e0239 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by Alexander Smorkalov

fixed valgrind warning in polylines

(cherry picked from commit 85576598)
parent d0210f51
......@@ -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;
}
......
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