fixed valgrind warning in polylines
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Fri, 14 Aug 2015 14:57:54 +0000 (17:57 +0300)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Thu, 17 Sep 2015 10:35:25 +0000 (13:35 +0300)
(cherry picked from commit 855765986e9cd5c730730dd1f45175b182e737fa)

modules/core/src/drawing.cpp

index bd42ac5..bd8f171 100644 (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;
         }