diff options
| author | 2024-08-26 03:05:19 +0000 | |
|---|---|---|
| committer | 2024-08-27 00:03:43 +0000 | |
| commit | 8ac907f2a219f06d34aebe2bc2dbba9f8e98b560 (patch) | |
| tree | 813ee013de0fd4f9599ce90bcd07ed898fad13b2 /libs/androidfw/AttributeResolution.cpp | |
| 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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions