commit | 1b9cf9047879ef8a98a3a6403fb15242acf71ade | [log] [tgz] |
---|---|---|
author | Jintao Zhu <zhu.jintao@gm.com> | Fri Sep 09 00:00:29 2022 +0800 |
committer | Jintao Zhu <zhujtcsieee@gmail.com> | Fri Sep 09 00:18:54 2022 +0800 |
tree | 4bd47c0be7ea16f0424d3eed94d8ccae3c9b8da0 | |
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