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:
parent
d59188bcf5
commit
af9d64ef7d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue