From: Callum Date: Sun, 8 Sep 2013 09:33:53 +0000 (+0800) Subject: Fixed memory leaks X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e65ff3e5b9a6c5faceef82b9153a62af0ab7d3e4;p=matches%2FMCTX3420.git Fixed memory leaks --- diff --git a/server/stream.c b/server/stream.c index 229041a..09f723f 100644 --- a/server/stream.c +++ b/server/stream.c @@ -16,13 +16,14 @@ int storeFrame( CvCapture* capture) int p[3]; p[0] = CV_IMWRITE_JPEG_QUALITY; - p[1] = 10; //quality value. 0-100 + p[1] = 50; //quality value. 0-100 p[2] = 0; frame = cvQueryFrame(capture); if( frame == NULL) return 0; //error cvSaveImage("../web/images/test.JPG",frame,p); + cvReleaseImageHeader(&frame); return 1; }