diff options
| author | 2017-10-25 18:20:50 +0000 | |
|---|---|---|
| committer | 2017-10-25 18:20:50 +0000 | |
| commit | a6c443096cc63c31d920a04a22a9378ca25ae48c (patch) | |
| tree | 1ebbec3cedd8b429c2e4d6de8378a57401351dfc /libs/binder/ProcessState.cpp | |
| parent | ece73060f120041d07e81f268d76b8baeea6d8e6 (diff) | |
| parent | d296d0cd620db158f50434a06a190334e386eab9 (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 11dd5258a7..44039f83a2 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -276,7 +276,7 @@ sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) return NULL; } - b = new BpBinder(handle); + b = BpBinder::create(handle); e->binder = b; if (b) e->refs = b->getWeakRefs(); result = b; @@ -310,7 +310,7 @@ wp<IBinder> ProcessState::getWeakProxyForHandle(int32_t handle) // arriving from the driver. IBinder* b = e->binder; if (b == NULL || !e->refs->attemptIncWeak(this)) { - b = new BpBinder(handle); + b = BpBinder::create(handle); result = b; e->binder = b; if (b) e->refs = b->getWeakRefs(); |