Fix ownership for RenderArea in screenshots.
RenderArea was previously owned by captureScreenshot(), and was borrowed by renderScreenImpl(). But renderScreenImpl asynchronously executes screenshot rendering which relies on the render area, which causes a use-after-free. Instead, pass ownership to renderScreenImpl. Bug: 389887557 Change-Id: I37035b34d55f4847db9722371ea492364f7706fe Flag: EXEMPT bug fix Test: courage
Loading
Please register or sign in to comment