Sometimes, Panorama mode of the Camera app was not able to save
the picture taken.
Issue was caused by a memory leak. Captured panorama is converted to
compressed JPEG. After compress, memory used in the process was not
freed. Compressor must free memory explicitly.
Change-Id: I892fe99826f40cbddad44a00ba74616f17066b49
Original-Change-Id: I1b2d00bf54866b9ff55843cdeed93cd92d4f89d6
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
compress(&cinfo, (uint8_t*) inYuv, offsets);
jpeg_finish_compress(&cinfo);
compress(&cinfo, (uint8_t*) inYuv, offsets);
jpeg_finish_compress(&cinfo);
+ jpeg_destroy_compress(&cinfo);