diff options
| author | 2022-09-09 00:00:29 +0800 | |
|---|---|---|
| committer | 2022-09-09 00:18:54 +0800 | |
| commit | 1b9cf9047879ef8a98a3a6403fb15242acf71ade (patch) | |
| tree | 4bd47c0be7ea16f0424d3eed94d8ccae3c9b8da0 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 7f5baabe2aa5da326256003b50a53d2f4da0d289 (diff) | |
NativeMessageQueue: ensure nativeDestroy success
android_os_MessageQueue_nativeDestroy leaves a cyclic reference between its Looper instance and its NativeMessageQueue instance, resulting in a memory and fd leak.
Solution: break the cyclic reference with weak pointer wp<>.
Bug: 244478726
Signed-off-by: Jintao Zhu <zhu.jintao@gm.com>
Change-Id: Ic2a183b5cc7c05f9ade95a0602d425badd3d97b1
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions