commit | 385c20ea4bb495ca8dbff2c0196574f14c71b203 | [log] [tgz] |
---|---|---|
author | xutianguo <xutianguo@xiaomi.com> | Mon May 22 14:47:59 2017 +0800 |
committer | Myles Watson <mylesgw@google.com> | Tue Sep 05 19:42:18 2017 +0000 |
tree | a85d7c3bbdd9d6dd048f42190eac8a66d570d3e3 | |
parent | 41d9226851d0eb9fd26f5c17d824b70877f4e917 [diff] |
Set sJniAdapterServiceObj to NULL after deleting it. The global reference of sJniAdapterServiceObj(also other Objs) object was deleted, but we does not set it to NULL. As a result, crash happened later when we access this object again. Test: Enabled multi users and turn on/off bluetooth in multi user spaces over 1000 times, everything is okay. Bug: 38485697 Change-Id: Idb61b21b97bbe56c02bcf255c195cc33d5514ed1 Signed-off-by: xutianguo <xutianguo@xiaomi.com>