Camera3: Fix memory leak during frame reprocess

The 'streamCbRoutine()' method of the reprocess
 channel receive a camera super frame that was
 previously allocated on heap and must release it
 after exit

Bug: 13301331

Change-Id: Ie90f6b4f945f4b7fcc6c46d541871e44c3f6943b
Signed-off-by: Daniel Jarai <jaraidaniel@gmail.com>
This commit is contained in:
Shuzhen Wang 2014-03-03 23:27:06 -08:00 committed by Artem Borisov
parent d59188bcf5
commit af9d64ef7d
1 changed files with 1 additions and 0 deletions

View File

@ -1950,6 +1950,7 @@ void QCamera3ReprocessChannel::streamCbRoutine(mm_camera_super_buf_t *super_fram
}
*frame = *super_frame;
obj->m_postprocessor.processPPData(frame);
free(super_frame);
return;
}