Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea493e4c authored by Dan Zhang's avatar Dan Zhang Committed by android-build-merger
Browse files

Merge "Fix the reference leak on RemoteCallbackList"

am: be30d27a

Change-Id: Ibf79be3f125ab58c8048c15f3f6f3a3e693295e7
parents 9d0769f8 be30d27a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;