From 46430791546908818597cfa8498572bd946042e9 Mon Sep 17 00:00:00 2001 From: Callum Date: Sun, 8 Sep 2013 17:36:43 +0800 Subject: [PATCH] Fixed memory leaks --- camera/capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camera/capture.c b/camera/capture.c index 815cef0..8ec196d 100644 --- a/camera/capture.c +++ b/camera/capture.c @@ -22,14 +22,14 @@ int storeFrame( CvCapture* capture) /*int p[3]; p[0] = CV_IMWRITE_JPEG_QUALITY; - p[1] = 10; + p[1] = 10; //quality value; 0->100 p[2] = 0;*/ frame = cvQueryFrame(capture); if( frame == NULL) return 0; //error cvSaveImage(filepath,frame,0); - + cvReleaseImageHeader(&frame); return 1; } -- 2.20.1