DO NOT MERGE: Fix ION memory leak for camera2 testStillPreviewCombination tstcase

This test item will use ImageReader for receiving image buffer produced by Camera HAL1,
During tesing, ImageReaders can not be released for those surfaces are usually released
by finalizer( It seems like finalizer can't keep up the speed to configure_streams in
that test).

This patch release ImageReader's surface after new stream cofiguration configured.

Change-Id: Ie9fc94f10d77488f309fc966cb5d7eb3e50dc0d4
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>
1 file changed