From: Callum Date: Sun, 8 Sep 2013 09:36:43 +0000 (+0800) Subject: Fixed memory leaks X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=46430791546908818597cfa8498572bd946042e9;p=matches%2FMCTX3420.git Fixed memory leaks --- 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; }