author | Guosong Zhou <guosong.zhou@amlogic.com> | 2016-01-29 08:37:09 (GMT) |
---|---|---|
committer | Guosong Zhou <guosong.zhou@amlogic.com> | 2016-01-29 08:37:09 (GMT) |
commit | e015b0cd215e8461dc2ed8f4b5442ef1ed51a33e (patch) | |
tree | 9e9d17c5fed11f821283b21c6ae689f76a0354f6 | |
parent | 697467d9ab3e58690b858d8f9061d52c31f96dbd (diff) | |
download | camera-e015b0cd215e8461dc2ed8f4b5442ef1ed51a33e.zip camera-e015b0cd215e8461dc2ed8f4b5442ef1ed51a33e.tar.gz camera-e015b0cd215e8461dc2ed8f4b5442ef1ed51a33e.tar.bz2 |
PD#112756: camera: fix camera capture memory leak
Change-Id: I7b3985de45be7cf98589ac967d9250cda7da5704
-rw-r--r-- | v3/fake-pipeline2/JpegCompressor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |