mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 04:36:36 +08:00
fixed valgrind warning in polylines
(cherry picked from commit 855765986e
)
This commit is contained in:
parent
d0210f510e
commit
fc0e0239b8
@ -2216,6 +2216,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user