commit | 032d7a0b53d4643ccfda9d2958ba169b6348fc96 | [log] [tgz] |
---|---|---|
author | Ahan Wu <ahanwu@google.com> | Tue Mar 09 00:03:39 2021 +0800 |
committer | Ahan Wu <ahanwu@google.com> | Tue Mar 09 18:15:43 2021 +0000 |
tree | b34b7242dafea4b0e8c1a1b05fad3cdd8d932a43 | |
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