From e015b0cd215e8461dc2ed8f4b5442ef1ed51a33e Mon Sep 17 00:00:00 2001 From: Guosong Zhou Date: Fri, 29 Jan 2016 08:37:09 +0000 Subject: PD#112756: camera: fix camera capture memory leak Change-Id: I7b3985de45be7cf98589ac967d9250cda7da5704 --- diff --git a/v3/fake-pipeline2/JpegCompressor.cpp b/v3/fake-pipeline2/JpegCompressor.cpp index 4399d4d..df528f9 100644 --- a/v3/fake-pipeline2/JpegCompressor.cpp +++ b/v3/fake-pipeline2/JpegCompressor.cpp @@ -252,7 +252,8 @@ bool JpegCompressor::threadLoop() { } mMutex.unlock(); } - bool foundJpeg = false, mFoundAux = false; + mFoundJpeg = false; + mFoundAux = false; for (size_t i = 0; i < mBuffers->size(); i++) { const StreamBuffer &b = (*mBuffers)[i]; if (b.format == HAL_PIXEL_FORMAT_BLOB) { -- cgit