diff options
| author | 2025-01-14 10:30:27 -0800 | |
|---|---|---|
| committer | 2025-01-14 10:30:27 -0800 | |
| commit | 37973d9a8e812cf54c8fa017767003896e9737f5 (patch) | |
| tree | c1003e7d947389f2e43c8ae60b0e9d367b87cb78 /libs/battery/LongArrayMultiStateCounterTest.cpp | |
| parent | 1da782184ffb4015139869346a657a937d593119 (diff) | |
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
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions