diff options
author | Ahan Wu <ahanwu@google.com> | 2021-03-09 00:03:39 +0800 |
---|---|---|
committer | Ahan Wu <ahanwu@google.com> | 2021-03-09 18:15:43 +0000 |
commit | 032d7a0b53d4643ccfda9d2958ba169b6348fc96 (patch) | |
tree | b34b7242dafea4b0e8c1a1b05fad3cdd8d932a43 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 779ea7feb32075fe3e07b95e0cedc9deca312e53 (diff) |
Always remove the observers in cancel to avoid object leakage
We didn't remove the observers if the cancel invocation came from end(),
this caused leakage of FrameTracker, so we always remove the observers
no matter where the cancel invocation comes from.
Bug: 181683700
Test: atest FrameworksCoreTests:InteractionJankMonitorTest
FrameworksCoreTests: FrameTrackerTest
Change-Id: Ia03ebc3b579257dd387eaa1be65b9d22e7b7bf91
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions