Merge "Fix the reference leak on RemoteCallbackList" am: be30d27a8a

am: ea493e4c77

Change-Id: Iffc4beb2fd5c30a35a744c133186826cd7f487b8
This commit is contained in:
Dan Zhang
2019-08-01 00:37:46 -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;