summaryrefslogtreecommitdiff
path: root/libs/binder/AppOpsManager.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-04-12 21:09:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-04-12 21:09:03 +0000
commitd5cc17b3b45f32f1a74d963b2c59e39a12c46675 (patch)
treeb9331e64756e73b847d0996f1c4ab8c28c767e39 /libs/binder/AppOpsManager.cpp
parent369abe010a738a5c5e841cfeac82bd0fca7bfb1c (diff)
parent1a3a8effca802995ece193b7d40cd80abba55798 (diff)
Merge "libbinder use stronger refbase semantics"
Diffstat (limited to 'libs/binder/AppOpsManager.cpp')
-rw-r--r--libs/binder/AppOpsManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/AppOpsManager.cpp b/libs/binder/AppOpsManager.cpp
index 1c6b49135d..f3ea1a71d0 100644
--- a/libs/binder/AppOpsManager.cpp
+++ b/libs/binder/AppOpsManager.cpp
@@ -36,7 +36,7 @@ static const sp<IBinder>& getClientId() {
pthread_mutex_lock(&gClientIdMutex);
if (gClientId == nullptr) {
- gClientId = new BBinder();
+ gClientId = sp<BBinder>::make();
}
pthread_mutex_unlock(&gClientIdMutex);
return gClientId;