From e65ff3e5b9a6c5faceef82b9153a62af0ab7d3e4 Mon Sep 17 00:00:00 2001 From: Callum Date: Sun, 8 Sep 2013 17:33:53 +0800 Subject: [PATCH] Fixed memory leaks --- server/stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1