Update lkdemo.cpp because of memory leak

In MacOSx x64 it was getting a memory leak even without initializing points:
http://code.opencv.org/issues/4250
This commit is contained in:
RafaRuiz 2015-03-24 09:06:55 +00:00
parent e64188021a
commit 660a53e0e0

View File

@ -61,12 +61,11 @@ int main( int argc, char** argv )
namedWindow( "LK Demo", 1 );
setMouseCallback( "LK Demo", onMouse, 0 );
Mat gray, prevGray, image;
Mat gray, prevGray, image, frame;
vector<Point2f> points[2];
for(;;)
{
Mat frame;
cap >> frame;
if( frame.empty() )
break;