commit | 10d75fc5f2e4097338122628566650ca42cd44f4 | [log] [tgz] |
---|---|---|
author | Matt Buckley <mattbuckley@google.com> | Thu Aug 24 15:56:46 2023 +0000 |
committer | Matt Buckley <mattbuckley@google.com> | Fri Aug 25 19:56:37 2023 +0000 |
tree | 10b2d5348c8008bbe759ddfe51fb990b5b101eef | |
parent | 21c98807fa227afe199c5ef48db2c851c92606ef [diff] [blame] |
Fix possible leaks in CanvasContext HintSessionWrapper Ensure the mHintSessionFuture is accounted for correctly in the destructor, and proper destruction is taken in CanvasContext::destroy() in addition to the destructor. Bug: b/297230599 Test: manual Change-Id: Idcbd0f2ba87290f090d693f0a64cb46fe8270b95 Merged-In: Idcbd0f2ba87290f090d693f0a64cb46fe8270b95 (cherry picked from commit ac620f64a32500890007b0b405ca72405d6db41e)
diff --git a/libs/hwui/renderthread/HintSessionWrapper.h b/libs/hwui/renderthread/HintSessionWrapper.h index 24b8150..bdb9959 100644 --- a/libs/hwui/renderthread/HintSessionWrapper.h +++ b/libs/hwui/renderthread/HintSessionWrapper.h
@@ -37,6 +37,7 @@ void sendLoadResetHint(); void sendLoadIncreaseHint(); bool init(); + void destroy(); private: APerformanceHintSession* mHintSession = nullptr;