Merge "Fix the reference leak on RemoteCallbackList"

am: be30d27a8a

Change-Id: Ibf79be3f125ab58c8048c15f3f6f3a3e693295e7
This commit is contained in:
Dan Zhang
2019-07-31 22:19:30 -07:00
committed by android-build-merger

View File

@@ -123,6 +123,7 @@ public class RemoteCallbackList<E extends IInterface> {
IBinder binder = callback.asBinder();
try {
Callback cb = new Callback(callback, cookie);
unregister(callback);
binder.linkToDeath(cb, 0);
mCallbacks.put(binder, cb);
return true;