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:
parent
1e01441767
commit
f0595b8254
@ -60,12 +60,11 @@ int main( int argc, char** argv )
|
|||||||
namedWindow( "LK Demo", 1 );
|
namedWindow( "LK Demo", 1 );
|
||||||
setMouseCallback( "LK Demo", onMouse, 0 );
|
setMouseCallback( "LK Demo", onMouse, 0 );
|
||||||
|
|
||||||
Mat gray, prevGray, image;
|
Mat gray, prevGray, image, frame;
|
||||||
vector<Point2f> points[2];
|
vector<Point2f> points[2];
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
Mat frame;
|
|
||||||
cap >> frame;
|
cap >> frame;
|
||||||
if( frame.empty() )
|
if( frame.empty() )
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user