commit | 8ac907f2a219f06d34aebe2bc2dbba9f8e98b560 | [log] [tgz] |
---|---|---|
author | Bryce Lee <brycelee@google.com> | Mon Aug 26 03:05:19 2024 +0000 |
committer | Bryce Lee <brycelee@google.com> | Tue Aug 27 00:03:43 2024 +0000 |
tree | 813ee013de0fd4f9599ce90bcd07ed898fad13b2 | |
parent | 7477c179b16fc5a27d371fd85f8a392fa1c20a95 [diff] |
Use a WeakReferences in DreamServiceWrapper and DreamActivityCallbacks. The DreamServiceWrapper and DreamActivityCallbacks are handed across process during onBind. As a result, it should not reference the parent class as this will lead to a memory leak. This changelist wraps the parent in a WeakReference to resolve this. Test: manual. monitored heap usage and verified no leak Bug: 360088321 Flag: EXEMPT bugfix Change-Id: I99bde447a8844b9d15c1908139b987d097e233d3