From 855765986e9cd5c730730dd1f45175b182e737fa Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 14 Aug 2015 17:57:54 +0300 Subject: [PATCH] fixed valgrind warning in polylines --- modules/core/src/drawing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/src/drawing.cpp b/modules/core/src/drawing.cpp index bd42ac506..bd8f171b1 100644 --- a/modules/core/src/drawing.cpp +++ b/modules/core/src/drawing.cpp @@ -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; }