diff options
author | 2018-07-10 16:24:47 +0000 | |
---|---|---|
committer | 2018-07-10 16:24:47 +0000 | |
commit | 8b8ce408fb1d6183dbe1aa1ffa560a7fce17ba18 (patch) | |
tree | a6df288ae23588643cc8210dc505f1937c088c94 /libs/binder/ProcessState.cpp | |
parent | 536755917dbcfd167f29c8cc57da29c5b5884efc (diff) | |
parent | 2d349907874d96f36d3ce00eaad5fdafed8c6620 (diff) |
Merge "Native Side of Binder Proxy Tracking by Uid"
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index c8cdb77b9c..53f8dddfe1 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -288,7 +288,7 @@ sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) return nullptr; } - b = new BpBinder(handle); + b = BpBinder::create(handle); e->binder = b; if (b) e->refs = b->getWeakRefs(); result = b; @@ -322,7 +322,7 @@ wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) // arriving from the driver. IBinder* b = e->binder; if (b == nullptr || !e->refs->attemptIncWeak(this)) { - b = new BpBinder(handle); + b = BpBinder::create(handle); result = b; e->binder = b; if (b) e->refs = b->getWeakRefs(); |