Fix EglFramebuffer leak
Summary: ... causing large memory use increase during JPEG capture.
The incorrect argument to eglDestroyImageKHR, caused the ANativeBuffer
asociated with temporary EGL framebuffer was not freed until the
reference was dropped finally during tear-down of the asociated
EGL display.
This caused memory usage to skyrocket during JPEG capture.
Test: m virtual_camera_tests
Flag: EXEMPT Bug-fix
Signed-off-by: Abdelrahman Daim <adaim@meta.com>
Change-Id: I1e599a9b200ac3053507b026ca5995bd42add43d
1 file changed